k9s
k9s copied to clipboard
feat: add InitialView configuration option to k9s
This pull request introduces a new configuration setting called initialView that allows users to specify the initial view in the application. The changes span across multiple files to integrate this new setting into the application logic, configuration, and documentation.
Configuration and Documentation Updates:
README.md: Added a description of theinitialViewsetting to the configuration section.internal/config/json/schemas/k9s.json: AddedinitialViewas a new string type configuration option.
Application Logic Updates:
cmd/root.go: Modified therunfunction to set the active view based on theinitialViewconfiguration if it is specified.internal/config/k9s.go:- Added
InitialViewas a new field in theK9sstruct. - Updated the
Mergemethod to include merging theInitialViewfield.
- Added