You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem you're trying to solve
As the CLI becomes more complex and gains more options, it would be convenient to be able to set some/all of them persistently in a configuration file. This will become increasingly useful as e.g. more networking options are added.
Describe the solution you'd like
Kit should provide a kit config command to allow configuring common options available as flags and saving that configuration between invocations. This configuration should be saved to some file (maybe in the $KITOPS_HOME directory, or separate Kit config directory) and these settings should be used instead of default values for corresponding flags.
Describe alternatives you've considered
Mainly, deferring this work until there are enough flags we're specifying on every invocation where the moderately increased complexity of supporting a config file makes sense.
Additional context
Related: #365 -- we want to be able to persistently disable update notifications, for example.
The text was updated successfully, but these errors were encountered:
This commit refactors the code related to loading and saving the configuration file. It introduces a new function `ConfigFilePath` in the `consts.go` file to generate the path for the configuration file based on the `configHome` directory. The `LoadConfig` function now returns the default configuration if the file doesn't exist, and the `SaveConfig` function creates the directory before saving the file. These changes improve the reliability and maintainability of the configuration handling.
Fixesjozu-ai#419
Describe the problem you're trying to solve
As the CLI becomes more complex and gains more options, it would be convenient to be able to set some/all of them persistently in a configuration file. This will become increasingly useful as e.g. more networking options are added.
Describe the solution you'd like
Kit should provide a
kit config
command to allow configuring common options available as flags and saving that configuration between invocations. This configuration should be saved to some file (maybe in the$KITOPS_HOME
directory, or separate Kit config directory) and these settings should be used instead of default values for corresponding flags.Describe alternatives you've considered
Mainly, deferring this work until there are enough flags we're specifying on every invocation where the moderately increased complexity of supporting a config file makes sense.
Additional context
Related: #365 -- we want to be able to persistently disable update notifications, for example.
The text was updated successfully, but these errors were encountered: