Skip to content

v0.2.0 — help, French, deploy summary, completion - #4

Merged
DJTJ21 merged 1 commit into
mainfrom
feat/v0.2-ui
Oct 19, 2026
Merged

DJTJ21 merged 1 commit into
mainfrom
feat/v0.2-ui

Conversation

@DJTJ21

@DJTJ21 DJTJ21 commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Help

  • idem --help:
    • commands grouped by what they are for (Deploy / Application / Infrastructure / Account);
    • the 5 examples that cover most needs;
    • the options;
    • a documentation link.
  • idem <command> --help ends with its own examples (deploy, login, logs, rollback, env, domains, servers, workspaces, db, templates, completion).
  • A mistyped command gets a suggestion: idem deplo → Did you mean idem deploy?

French

  • The language follows the system (LANG and similar). Force it with IDEM_LANG=fr|en, or --lang fr on one command.
  • Every message, question and help text goes through t(). The English text is the key, and src/locales/fr.ts holds the French. A missing key falls back to English.
  • 414 entries. Checked: every key is covered, and every {variable} is kept in the translation.

Display

  • idem deploy ends with a summary box: address, duration, linked variables, next commands (idem logs -f, idem open, idem status).
  • idem alone, in a folder that is not deployed yet, shows a welcome message with the one command to run (idem deploy).
  • In French, questions use whole sentences per resource type, to get the genders right (« Quel serveur ? » / « Quelle base ? »).

Completion

idem completion bash|zsh|fish is generated from the CLI's own commands, so it never lags behind them. The bash script passes bash -n.

Checks

Done in a Node 20 container:

  • tsc --noEmit and build pass;
  • the help was checked in English and in French;
  • the deploy --help examples in French were checked;
  • a French error message, the suggestion for a mistyped command and the completion were checked.

Version

0.2.0. After merge: git tag v0.2.0 && git push --tags, which publishes it to npm.

- 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.
@DJTJ21
DJTJ21 merged commit 57585fd into main Oct 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant