mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 18:44:53 +01:00
build
This commit is contained in:
@@ -18,6 +18,7 @@ from tabulate import tabulate
|
||||
from port import Portainer
|
||||
from prompt_toolkit import prompt
|
||||
from prompt_toolkit.completion import WordCompleter
|
||||
from prompt_toolkit.shortcuts import checkboxlist_dialog
|
||||
|
||||
VERSION = "0.1.3"
|
||||
|
||||
@@ -270,6 +271,14 @@ def prompt_missing_args(args_in, defaults_in, fields):
|
||||
commands, ignore_case=True, match_middle=False
|
||||
)
|
||||
try:
|
||||
if field == "stack":
|
||||
result = checkboxlist_dialog(
|
||||
title="Select Services",
|
||||
text="Choose one or more services:",
|
||||
values=commands,
|
||||
).run()
|
||||
input(result)
|
||||
else:
|
||||
value_in = (
|
||||
prompt(
|
||||
f" >> {prompt_text}",
|
||||
|
||||
Reference in New Issue
Block a user