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

Configuration file support #17

Closed
crazyscot opened this issue Nov 28, 2024 · 3 comments
Closed

Configuration file support #17

crazyscot opened this issue Nov 28, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@crazyscot
Copy link
Owner

Like ssh and other utilities, I'd like to be able to set defaults so I don't have to type --rx whatever every time.

Ideas:

  • Local config file that provides default settings
  • Settings overridable
  • User and system-wide config files
  • The two endpoints negotiate bandwidth based on their configuration
  • Useful error reporting (e.g. syntax error at line 42 of ) is important
  • User-friendly file format (while TOML is handy, I don't consider it friendly enough; I am thinking about INI files or something close).
@crazyscot crazyscot added the enhancement New feature or request label Nov 28, 2024
@crazyscot crazyscot added this to the 0.2 milestone Nov 28, 2024
@crazyscot crazyscot self-assigned this Nov 28, 2024
crazyscot added a commit that referenced this issue Dec 7, 2024
- initial file format is TOML
- lots of refactoring, most notably the CLI argument structures
- added CLI options `--show-config` and `--config-files`
- renamed CLI options --ipv4, --ipv6 to --address-family 4|6  (short
  args `-4` and `-6` unchanged)
crazyscot added a commit that referenced this issue Dec 7, 2024
- initial file format is TOML
- lots of refactoring, most notably the CLI argument structures
- added CLI options `--show-config` and `--config-files`
- renamed CLI options --ipv4, --ipv6 to --address-family 4|6  (short
  args `-4` and `-6` unchanged)
@Lightjohn
Copy link

Among the configuration files would it be an option to use ssh config files to get server name equivalent IP and user name?

@crazyscot
Copy link
Owner Author

@Lightjohn I like the idea! It's a separate feature, so I have attempted to capture it as #22; does that describe what you had in mind?

@crazyscot
Copy link
Owner Author

crazyscot commented Dec 13, 2024

Configuration files will form the cornerstone of the 0.2 release. Still to do:

  • friendlier config file format than TOML (maybe something closer to ssh's config format)
  • create a default/template config file; include in the debian package as a conffile
  • make parse failure error messages clearer (invalid type, unknown enum variant, invalid port range)
  • Update docs/man page

crazyscot added a commit that referenced this issue Dec 26, 2024
- initial file format is TOML
- lots of refactoring, most notably the CLI argument structures
- added CLI options `--show-config` and `--config-files`
- renamed CLI options --ipv4, --ipv6 to --address-family 4|6  (short
  args `-4` and `-6` unchanged)
crazyscot added a commit that referenced this issue Dec 26, 2024
closes #13, closes #17, closes #22
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
None yet
Development

No branches or pull requests

2 participants