-
-
Notifications
You must be signed in to change notification settings - Fork 49
feat(spec): add effect= to declare what a command does to the world #739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| {"run_id":"1785010937-360323306","line":141,"new":{"module_name":"usage__docs__markdown__cmd__tests","snapshot_name":"render_markdown_cmd_effect","metadata":{"source":"lib/src/docs/markdown/cmd.rs","assertion_line":141,"expression":"rendered"},"snapshot":"# `mise ls`\n\n- **Usage**: `mise ls`\n- **Effect**: read-only\n\nList installed tools\n# `mise use`\n\n- **Usage**: `mise use`\n- **Effect**: modifies state\n\nInstall a tool\n# `mise uninstall`\n\n- **Usage**: `mise uninstall`\n- **Effect**: destructive — may delete or irreversibly overwrite\n\nRemove a tool\n# `mise version`\n\n- **Usage**: `mise version`\n\nShow the version"},"old":{"module_name":"usage__docs__markdown__cmd__tests","metadata":{},"snapshot":"# `mise ls`\n\n- **Usage**: `mise ls`\n- **Effect**: read-only\n\nList installed tools\n\n# `mise use`\n\n- **Usage**: `mise use`\n- **Effect**: modifies state\n\nInstall a tool\n\n# `mise uninstall`\n\n- **Usage**: `mise uninstall`\n- **Effect**: destructive — may delete or irreversibly overwrite\n\nRemove a tool\n\n# `mise version`\n\n- **Usage**: `mise version`\n\nShow the version"}} | ||
| {"run_id":"1785010954-370828992","line":141,"new":null,"old":null} | ||
| {"run_id":"1785010954-370828992","line":27,"new":null,"old":null} | ||
| {"run_id":"1785010965-151987287","line":141,"new":null,"old":null} | ||
| {"run_id":"1785010965-151987287","line":27,"new":null,"old":null} | ||
| {"run_id":"1785011019-265767551","line":141,"new":null,"old":null} | ||
| {"run_id":"1785011019-265767551","line":27,"new":null,"old":null} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,9 @@ | |
| {%- if cmd.aliases %} | ||
| - **Aliases**: `{{ cmd.aliases | join(sep="`, `") }}` | ||
| {%- endif %} | ||
| {%- if cmd.effect %} | ||
| - **Effect**: {% if cmd.effect == "read" %}read-only{% elif cmd.effect == "destructive" %}destructive — may delete or irreversibly overwrite{% else %}modifies state{% endif %} | ||
| {%- endif %} | ||
|
Comment on lines
+15
to
+17
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new template branches for Knowledge Base Used: Docs generation: rendering a Spec into markdown, manpages, and CLI help Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||
| {%- if source_code_link %} | ||
| - **Source code**: {{ source_code_link }} | ||
| {%- endif %} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.