docs: add import command usage#586
Conversation
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8ef2603296
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| For unattended usage, add `--yes` to approve prompts automatically. To preview the target action without changing files, use `--dry-run`: | ||
|
|
||
| ```shell | ||
| lms import ~/Downloads/model.gguf --yes --dry-run |
There was a problem hiding this comment.
Avoid documenting --yes --dry-run as unattended
For a fresh profile using the default move mode, this documented unattended preview can still block and change local state: importCmd.action calls warnAboutMove(logger, yes, ...) before the dry-run branch, and warnAboutMove still calls confirm(...) even when yes is true; resolveModelsFolderPath also creates the models folder before --dry-run is checked. Users following this README example in CI or scripts can hang on the first-run move warning instead of getting a non-interactive preview, so the docs need to avoid this claim/example unless the implementation is changed.
Useful? React with 👍 / 👎.
Summary
lms import <file path>to the README command list--copy,--hard-link,--symbolic-link,--user-repo,--yes, and--dry-runCloses #554
Tests
src/subcommands/importCmd.tsgit diff --checknpx prettier --check README.md