Repository navigation
v0.2.0 — help, French, deploy summary, completion - #4
Merged
Merged
Conversation
- Help: commands grouped (Deploy / Application / Infrastructure / Account), examples on the first screen and under each command, documentation link; a mistyped command gets a suggestion. - French and English: the system's language, IDEM_LANG or --lang; every message, prompt and help text goes through t() (src/locales/fr.ts). - idem deploy ends with a summary: address, duration, linked variables, next commands. - idem alone, in a folder not deployed yet, says the one command to run. - idem completion bash|zsh|fish, generated from the commands themselves.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Help
idem --help:idem <command> --helpends with its own examples (deploy, login, logs, rollback, env, domains, servers, workspaces, db, templates, completion).idem deplo→ Did you mean idem deploy?French
LANGand similar). Force it withIDEM_LANG=fr|en, or--lang fron one command.t(). The English text is the key, andsrc/locales/fr.tsholds the French. A missing key falls back to English.{variable}is kept in the translation.Display
idem deployends with a summary box: address, duration, linked variables, next commands (idem logs -f,idem open,idem status).idemalone, in a folder that is not deployed yet, shows a welcome message with the one command to run (idem deploy).Completion
idem completion bash|zsh|fishis generated from the CLI's own commands, so it never lags behind them. The bash script passesbash -n.Checks
Done in a Node 20 container:
tsc --noEmitand build pass;deploy --helpexamples in French were checked;Version
0.2.0. After merge:
git tag v0.2.0 && git push --tags, which publishes it to npm.