Releases: fehmicansaglam/esctl
Releases · fehmicansaglam/esctl
v1.0.0
Full Changelog: v0.5.0...v1.0.0
v0.5.0
Added
- Introduced the 'query' Command for Elasticsearch Queries:
- New 'query' command in esctl allowing users to search by index, term, and ID.
- Implemented the SearchDocuments function supporting multiple terms and IDs.
- Documented the usage, flags, and examples of the 'query' command in the README.
- Introduced timeout flag for the 'group by' command. This flag allows users to customize the timeout for potentially long-running queries. The default timeout is set to 1s.
Changed
- Refactored 'get' command for better modularity:
- Extracted 'get' command logic into individual subcommands: nodes, indices, shards, aliases, tasks.
- Enhanced the user experience to be more like kubectl:
- Introduced a context switch mechanism.
- Replaced 'clusters' with 'contexts' for a consistent naming approach.
- Added a new command group 'config' for managing contexts.
- The 'set-cluster' command was replaced with 'config use-context'.
- The 'list-clusters' command was replaced with 'config get-contexts'.
- Added a 'config current-context' command for displaying the current context.
Fixed
- Resolved issues with inherited flags in the 'get' command. Now, all inherited flags are recognized as valid flags for all entities.
Removed
- Removed unused flags.
Misc
- Sorted texts in a natural order.
- Added documentation on creating a custom starship module.
v0.4.0
- Revised Elasticsearch environment variables: The environment variables for Esctl have been updated for a more consistent experience.
- Added 'describe index' command: This new command prints the mappings of the given index.
- Introduced '--output' flag supporting YAML and JSON: Output format can now be selected using the '--output' flag.
- Refactored 'get' command arguments and enhanced node filtering: Entity naming in commands has been harmonized, preferring plural forms. A function to validate flags for all entities has been implemented, and specific node data can now be fetched when a node name is provided.
- Added the 'group-by' feature to the 'count' command: Users can now retrieve counts of documents grouped by a specific field in Elasticsearch indices using the '--group-by' flag.
- Added 'size' flag to the 'count' command: Users can now set a limit on the number of results returned per group in Elasticsearch responses with the 'size' flag. The default limit is 50 if no 'size' flag is specified.