8000 Improved configuration & CLI · Issue #77 · rustzx/rustzx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improved configuration & CLI #77

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

Open
pacmancoder opened this issue May 16, 2021 · 0 comments
Open

Improved configuration & CLI #77

pacmancoder opened this issue May 16, 2021 · 0 comments

Comments

@pacmancoder
Copy link
Collaborator

To improve the usability of the emulator, the following configuration sources should be introduced:

  • Global emulator configuration, used as the default for all files
  • Per-asset (tap, sna, etc.) configuration for keeping asset-specific settings

These settings should be located in user-specific config folder (directories crate can be used)

Configuration sources should have the following priority (from the highest)

  • Options specified in CLI
  • Per-asset configuration
  • Global configuration
  • Emulator defaults

Additional change for this task will be CLI refactoring

Current commands related to starting emulator should be moved to run subcommand:
rustzx run --tap jetpac.tap

Additional run subcommand args

--remember - save provided asset-specific settings

config subcommand

Subcommands:

  • set - set global or asset-specific settings. Global options can be selected with --global flag
  • defaults - reset asset settings for asset or globally.

Basically, part of run arguments should be moved to the different structopt structure and re-used for configuration commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0