-
Notifications
You must be signed in to change notification settings - Fork 565
feat(cli): add "save-config" subcommand to store configuration #244
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
Change is looking food except that it needs to be rebased.
- Add SaveConfig option to enable saving the current configuration to the default config path - Implement WriteConfigurationFile method to write configuration when SaveConfig is set - Refactor configuration file path handling with expandConfigPath helper - Improve error reporting when reading and writing configuration files - Add --save-config CLI flag Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Use filepath.Join to construct default config paths for better cross-platform compatibility - Split config path tokens based on the OS path separator instead of hardcoding "/" Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Refactor expandConfigPath to use string replacement instead of splitting paths. - Improve error messages when expanding {CONFIG} or {HOME} placeholders. - Ensure file paths are cleaned with filepath.Clean before reading configuration files. Signed-off-by: appleboy <appleboy.tw@gmail.com>
Signed-off-by: appleboy <appleboy.tw@gmail.com>
@droot All Done. Please help review again. |
save-config
save-config
@appleboy We recently added support for We will get the PR in but there will be delay, hope you understand. Thank you! |
@droot Sounds Good. Thank you for getting back to me. |
@droot May I continue working on this pull request? |
Uh oh!
There was an error while loading. Please reload this page.