Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[disma-cli] Add "init" command #56

Open
vigenere23 opened this issue Jan 26, 2023 · 0 comments
Open

[disma-cli] Add "init" command #56

vigenere23 opened this issue Jan 26, 2023 · 0 comments

Comments

@vigenere23
Copy link
Owner

Add init command to CLI for pre-creating configs and scripts with sensible defaults.

Subcommands:

  • yaml : create a config.yaml config file
  • json : create a config.json config file
  • handlebars : create a config.template.hbs template config with a variables.yaml variables file

All subcommands should create an exec.sh script that wraps the needed bash commands for execution, like this :

guild_id=<YOUR_GUILD_ID>
# guild_id=$1  # get the first argument

disma apply -g "$guild_id" -i config.<init_extension>

If using template, should add this command before apply :

disma compile -t config.template.hbs -v variables.yaml -o config.yaml

Should maybe also create an exec.ci.sh script that uses the -f flag.

@vigenere23 vigenere23 added the feature New feature label Jan 26, 2023
@vigenere23 vigenere23 added this to Disma Jan 26, 2023
@vigenere23 vigenere23 added this to the Nice to have milestone Jan 26, 2023
@vigenere23 vigenere23 moved this to ⏭️ Next in Disma Jan 26, 2023
@vigenere23 vigenere23 changed the title [disma-cli] Add init command [disma-cli] Add "init" command May 7, 2023
@vigenere23 vigenere23 moved this from ⏭️ Next to 📋 Backlog in Disma Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant