flisk import/export --help: usage shows flisk-import/flisk-export, import help omits --json, export omits docker-compose.yml, and import --version starts an import

Aperta Adatta ai principianti
#183 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli

Direzione di ricerca

Inizia individuando le definizioni dei comandi flisk import e flisk export e i test per il relativo output dell’aiuto. Confronta le descrizioni dell’utilizzo e delle opzioni con l’aiuto del comando radice flisk --help; traccia come viene gestito --version per import. Aggiungi copertura per entrambi i wrapper, quindi verifica che il testo dell’aiuto e il comportamento della versione corrispondano ai criteri di accettazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: cli bug discoverability docs-mismatch documentation dogfood error-messages has-repro misleading-message priority:medium small-fix

Summary

The help text for the flisk import and flisk export wrapper commands differs from the other commands and from the root flisk --help:

  1. The usage lines read flisk-import and flisk-export, not flisk import and flisk export.
  2. flisk import --help lists -V, --version and does not list --json, although flisk import --json works and the import code's own hint says "or --json".
  3. flisk export --help says "Write deploy files (render.yaml, wrangler.toml)". The root help lists render.yaml, wrangler.toml or docker-compose.yml, and the compose subcommand exists.
  4. Bare flisk import --version (or -V) starts an import instead of printing a version. With --dry-run added, it prints 0.18.3, which is not the flisk version 1.4.73.

Cause: not investigated.

Reproduce

Flisk version: 1.4.73. Tool version printed by flisk import --version --dry-run: 0.18.3.

cd /tmp/wf-cli-help-docs
flisk import --help | head -3
flisk import --help | grep -c -- --json
flisk import --json
flisk export --help | sed -n 1,3p
flisk --help | grep -n -E '^  export'
flisk import --version
flisk import --version --dry-run
flisk --version

Reproduced in 2 of 2 runs. Same output on both runs.

Before

Check Observed Expected
Usage line of flisk import --help Usage: flisk-import [options] [command] [dir] flisk import
Usage line of flisk export --help Usage: flisk-export [options] [command] flisk export
flisk import --help | grep -c -- --json 0 1
flisk import --json in an empty directory JSON envelope with code IMPORT_FAILED (working behavior, documented in help)
Files named in export description 2 (render.yaml, wrangler.toml) 3 (adds docker-compose.yml, as root help does)
Files named in root help for export 3 (render.yaml, wrangler.toml, docker-compose.yml) 3
flisk import --version Prints flisk import: no terminal to confirm the import, so nothing was written. and no version A version, or the flag removed from help
flisk import --version --dry-run 0.18.3 1.4.73 (flisk version)

After

  • Usage lines read flisk import and flisk export.
  • flisk import --help lists --json.
  • The export description mentions docker-compose.yml, matching the root help.
  • flisk import --version and -V either print the flisk version consistently or are removed from the help.

Acceptance criteria

  • flisk import --help and flisk export --help show Usage: flisk import and Usage: flisk export.
  • flisk import --help lists --json, and flisk import --help | grep -c -- --json returns at least 1.
  • The flisk export --help description lists the same deploy files as the root help, including docker-compose.yml.
  • flisk import --version and -V either print the flisk version (1.4.73 in the reproduced build), or the flag is removed from the import help. --version --dry-run prints the same value.
  • A test covers the help output of both wrapper commands (usage line, --json presence, export file list) so the mismatch cannot return.

Notes

  • Related issues found in the search: #87 (export usage errors still print the download hint; touches flisk export output, not its help text), #86 (flisk open wait message), #179 (false network hint on export validation errors), #157 (export render Blueprint), #180 (config regenerate --dry-run file count), #132 (README MCP tool count).
  • No existing issue covers the help text or the version flag on flisk import / flisk export.
Lingua principale
TypeScript
Stelle
1
Fork
2
Merge medio
11h 39m
PR unite (30g)
92

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di flisk-sh/flisk-cli

Tutte le issue di flisk-sh/flisk-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.