Skip to content

Commit

Permalink
Merge pull request #4 from GussSoares/fix/cli/allowParams-error
Browse files Browse the repository at this point in the history
[fix] error when edit without allowParams in commands.json fixed
  • Loading branch information
GussSoares authored Oct 3, 2021
2 parents 7d498e6 + 8cb6a39 commit 7ea419d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "triggercmd"
version = "0.3.0"
version = "0.3.1"
description = "Linux CLI client to TriggerCMD cloud service agent."
authors = ["Gustavo Soares <gustavo.soares.cdc@gmail.com>", "Madson Dias <madsonddias@gmail.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion triggercmd_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.0"
__version__ = "0.3.1"
10 changes: 5 additions & 5 deletions triggercmd_cli/command/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@ def edit(initial: dict):
return {
"trigger": inquirer.text(
message="Type the command name:",
default=initial["trigger"],
default=initial.get("trigger"),
validate=lambda v: len(v) > 0,
).execute(),
"command": inquirer.text(
message="Type the command:",
default=initial["command"],
default=initial.get("command"),
validate=lambda v: len(v) > 0,
).execute(),
"ground": inquirer.select(
message="Select a command ground:",
choices=["foreground", "background"],
default=initial["ground"],
default=initial.get("ground"),
).execute(),
"voice": inquirer.text(
message="Type the command voice:",
default=initial["voice"],
default=initial.get("voice"),
validate=lambda v: len(v) > 0,
).execute(),
"allowParams": inquirer.select(
message="Allow Params?",
default=initial["allowParams"],
default=initial.get("allowParams"),
choices=["false", "true"],
).execute(),
}
Expand Down

0 comments on commit 7ea419d

Please sign in to comment.