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

launch with arguments #60

Closed
4 tasks done
dinghino opened this issue May 4, 2021 · 1 comment · Fixed by #67
Closed
4 tasks done

launch with arguments #60

dinghino opened this issue May 4, 2021 · 1 comment · Fixed by #67
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dinghino
Copy link
Owner

dinghino commented May 4, 2021

implement argparse or something similar to launch directly bypassing the cli. Useful for automated systems and to just relaunch quickly with options

  • Implement core command structure with click
  • create commands to launch with arguments
  • add option to launch the CLI app
  • Should allow specifying a custom path for a settings file, to allow for separate configurations for eventual automations
@dinghino dinghino added the enhancement New feature or request label May 4, 2021
@dinghino dinghino self-assigned this May 4, 2021
@dinghino dinghino added this to the v1.0.0 milestone May 4, 2021
@dinghino dinghino added this to To do in Launch & install May 5, 2021
@dinghino dinghino moved this from To do to In progress in Launch & install May 5, 2021
@dinghino dinghino linked a pull request May 5, 2021 that will close this issue
@dinghino
Copy link
Owner Author

dinghino commented May 5, 2021

After working on it for a while i came to the conclusion that for now at least we will allow only to use an options file to launch through arguments.

At the current stage of development on feature/launch-args we have two commands available: cli and run. both accept a -f argument to specify a filename. Where they differ is that

  • for cli the argument is optional.
    • If missing it will use its default path to file and load that.
    • If present it will either try to load the file or start from empty settings, to be saved on that file
  • for run the file is required and should point to an existing settings and it will be used that to load the configuration and run.

run also supports a few flags to get debugging and progress, similar to cli progress display.

@dinghino dinghino moved this from In progress to Done in Launch & install May 6, 2021
@dinghino dinghino closed this as completed May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant