What's Changed
* Config improvements by spyder-griffith in https://github.com/spyderbat/spydertop/pull/11
This Release adds new configuration commands and a new configuration file structure. It splits the configuration into secrets, containing the API keys and URLs, and contexts, which define a default window into an investigation. Contexts can be as broad as all organizations for an API key or as specific as a single machine.
New commands:
- `spydertop config set/get/delete-context` - creating, reading, and deleting contexts
- `spydertop config set/get/delete-secret` - creating, reading, and deleting secrets
- `spydertop config use-context` - set the currently active context
- `spydertop config get` - show the currently active configuration
Additionally, shell completion is supported, and can be enabled in the same way as described in the [spyctl documentation](https://spyctl.readthedocs.io/en/latest/getting_started/install.html#enabling-shell-completion). For example, a zsh user would run:
zsh
_SPYDERTOP_COMPLETE=zsh_source spydertop > /path/to/spydertop_complete.zsh
add this to .zshrc
. /path/to/spydertop_complete.zsh
Changes to configuration
- config files and cache files are now stored in the appropriate directory according to platform standards
- e.x. `~/.config/spydertop/` and `~/.cache/spydertop` on Linux
- the configuration directory can now be specified with a `--config-dir/-c` flag
- old configuration files will automatically be migrated to the new configuration location and format
Other changes
- the old spydertop behavior is now in the `spydertop load` command
**Full Changelog**: https://github.com/spyderbat/spydertop/compare/v1.2.3...v1.3.0