- Upon creating a new context, also switch to it.
- When calling use-context, also display the name (just the name) of the current context which is selected.
- Updated the README.md file. Override password, and stop using network.
- Renamed 2 global variables: CLI_TOOL_NAME & toolNameBigText.
- Removed devDependencies key from package.json.
- Package is now using
esbuild
as its bundler. 50% less bundle-size.
- BUGFIX: inquireConfirm - default value needs to be an explicit boolean. The
undefined
value isn't considered asfalse
, and the confirm's default value is true, ergoundefined
is equaltrue
. The solution is to add double !! beforeisSure
.
- no need for .d.ts file for cli tool. removed from tsconfig.
- No context is set is error code 0, added line-break for You have 0 contexts.
- added a line-break before & after currentContext "No context is currently set" message.
- added a line-break before & after message "Failed to get indexes names".
- BUGFIX: removed extra "--" for the sure flag.
- added a confirmation check to the delete-index command. Added a new flag called "--sure" that the user can pass in order to pass the check.
- create-index command can now accept an index flag as input.
- BUGFIX: the delete-index command never got its builder set.
- refactored inquireConfirm: header is now and object comprised of isSure boolean & alternativeMessage string. isSure is set to false by default, as opposed to before when it defaulted to true. Message can now show either "false" or "true" based on isSure. Also, added a line-break before & after the question.
- clearAll command is using the new form of inquireConfirm.
- support zsh & bash auto-complete for commands. simply run the "completion" command, and paste its output inside your zsh/bash rc file.
- removed --editor flag from all commands. Added a "." to the endings of all command descriptions. Get a much more detailed description to the "get" command.
- Went back to using a commandMapper. Turns out that without it, the help menu for sub-commands is non-existent. So the commandMapper returned, we're no longer passing a handler to yargs for executing a command, and removed the errorSilencer - as it's only being used on the commandMapper.
- Created a hard-update command that overwrites the document's content entirely.
update
command made from a hard-update to a soft update.
get-settings
command now supports the --index flag.get-mapping
command now supports the --index flag.
- The delete command now has an option to specify an index, and an option to specify the document's id
- Replace console.error with logger.error in getContext function.
- Less files.
- Fixed the README.md file.
- Fixed the README.md file. there was a mistake there. also, added the new subcommand of "sq get all".
- The get command now has a subcommand called "get", which by default matches all documents and fetches up to 10 of them. you can add a number to control the amount of documents returned.
- Added an update command.
- Added a line-break before inquireNewIndexName.
- Improved the README.md file.
- The "no index found message" now has a new line-break before & after.
- Updated the help picture in the README.md file.
- Also added a line-break after
create-context
message.
- Also gave a line-break after
use-context
text message.
- Giving a line-break after delete-context "deleted successfully" message.
- Giving a line-break on
clear-all
command. - Giving a line-break after
use-context
"already selected" message.
- Created a
delete-context
command.
- Added more missing line breaks for UX. in
create-context
&use-context
.
- BUGFIX: removed try/catch from the run function, and handled its errors.
- Added line breaks between parts for clear UX.
- Replaced word bright with bold.
- BUGFIX: don't console.log the error when hitting ctrl+c on choose an index.
- Using an error silencer now on index.ts.
- BUGFIX: error silencer idn't pass the props which are all the flags.
- Builder, Description, and the CommandString are all stored inside the command's main file.
- Added an option to remove coloring from output. Useful when wanting to write output into a file. The flag is global and is called --color. there's also an option to negate with --no-color.
- The -X GET is misleading because the -d flag wins and makes it a POST request anyways, since a request with a body cannot be a GET.
- BUGFIX: two more places still had flags as an array.
- Flags are now string as-is - accepted once by the user.
executeDeleteQuery
converted to new way of using context.executeCreateIndexQuery
converted to new way of using context.executeAddQuery
converted to new way of using context.executeGetMapping
converted to new way of using context.executeGetSettings
converted to new way of using context.executeUpdateMappingQuery
converted to new way of using context.executeImportToIndexQuery
converted to new way of using context.executeDeleteIndexQuery
converted to new way of using context.- Huge refactor - yargs builders are now found inside the commands. Commands are now attached to the yargs objects and are executed upon parse.
- Added 3 commands:
create-context
,user-context
¤t-context
. current-context
command: better coloring.executeGetQuery
converted to new way of using context.- Converted console.log to logger.info.
inquireIndexName
made into a genericinquireSelectFromList
.
colorizeJson
now supports bracket/braces levels.
import
command now supports & also requires a file flag.
- BUGFIX: check used index instead of selectedIndex.
- Added the --file & --index flags to the
get
command. - Added the --file & --index flags to the
add
command. - Added the --file & --index flags to the
update-mapping
command.
- Added
update-mapping
command.
- Added a well written README.md file.
- BUGFIX:
commandMapper
should be async, and await the command. Otherwise, command would leave the lexical environment, where the try-catch is set, and the error would propagate to global lexical environment.
- Made the commandMapper the errorCatcher. removed try-catch from all commands.
executeGetMapping
was missing the silent flag.executeImportToIndexQuery
now requires that the data file should be the same name as the index you're trying to import into.- Removed
beautifyJson
, as it is unused (colorizeJson
replaced it). delete
command is now using "?pretty" query param, and the json colorizer for its output.delete-index
command is now using ?pretty query param, and the json colorizer for its output.get-mapping
command is now using the json colorizer for its output.- Added the
get-settings
command. get
command is now using "?pretty" query param, and the json colorizer for its output.- Created a json colorizer.
- Added the
get-mapping
command. you can now query an index's mapping. import-to-index
command is now using "?pretty" query param, and the json colorizer for its output.get-settings
command is using the json colorizer.- Removed the index.ts off of logger (it was unused).
create-index
command is now using "?pretty" query param, and the json colorizer for its output.add
command is now using "?pretty" query param, and the json colorizer for its output.
- Removed the
publish
command from manual/help.
- Added the
clear-all
command.
- Fixed the
get
command.
- BUGFIX: Values on the
Commands
enum need to be a string that is an exact match to the command.
- Made the package more lightweight now.
- Created the
import
command.
- Removed the "Bye." message.
- Added a
delete-index
command.
- BUGFIX: An accidental console.log left inside the code.
- Hardcoded the
--insecure
&--silent
flags to theadd
query.
- Fixed
validateElasticsearchIndexName
- the regex was wrong.
- Added a
delete
command, the command that enables you to delete a single document.
- Added a
create-index
command.
- Added the HUGE text, writing the package's name.
- First release -
get
command &add
command are GA.
- Added the
get
command
- First appearance 🎉 with the
add
command