-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for interactive args (#112)
- Loading branch information
1 parent
af80420
commit f422e30
Showing
4 changed files
with
89 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
groups: | ||
user: | ||
tasks: | ||
create: | ||
help: Create a new user | ||
args: | ||
username: | ||
type: str | ||
help: The username for the new user | ||
email: | ||
type: str | ||
help: The email address for the new user | ||
interactive: true | ||
password: | ||
type: str | ||
help: The password for the new user | ||
interactive: true | ||
run: | | ||
echo "Creating user:" | ||
echo "Username: ${{ args.username }}" | ||
echo "Email: ${{ args.email }}" | ||
echo "Password: ${{ args.password }}" | ||
weather: | ||
tasks: | ||
forecast: | ||
help: Get the weather forecast for a location | ||
args: | ||
city: | ||
type: str | ||
help: Enter the city for weather forecast | ||
interactive: true | ||
country: | ||
type: str | ||
help: Enter the country for weather forecast | ||
interactive: true | ||
run: | | ||
echo "Fetching weather forecast for ${{ args.city }}, ${{ args.country }}..." | ||
echo "The weather in ${{ args.city }} is sunny with a high of 25°C today!" |