Rename module info subcommand to module view#7052
Merged
pditommaso merged 5 commits intomasterfrom Apr 20, 2026
Merged
Conversation
Keep `info` as a backward-compatible alias. Adds a generic `getAliases()` hook on `CmdBase` so subcommands can declare extra names, and wires it through `CmdModule` so both the JCommander parser and the usage/help lookup recognize aliases. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
✅ Deploy Preview for nextflow-docs-staging canceled.
|
✅ Deploy Preview for nextflow-docs-staging canceled.
|
Contributor
|
Docs are still with |
Switch the new name from `inspect` to `view`. The `info` alias is still kept for backward compatibility. Update the CLI reference, module guide and 26.04 migration notes to reflect the new name. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
module info subcommand to module inspectmodule info subcommand to module view
Member
Author
|
Updated to |
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
bentsherman
approved these changes
Apr 20, 2026
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
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.
Summary
nextflow module infosubcommand tonextflow module viewinforegistered as a backward-compatible alias so existing usage keeps workingCmdBase.getAliases()hook and thread it throughCmdModuleso both JCommander parsing and the usage/help lookup resolve aliasesRationale
All other
nextflow modulesubcommands are named after a verb describing the action they perform:create,install,run,list,remove,search,publish,spec,validate.infowas the odd one out — a noun describing the output rather than the action. Renaming it toviewaligns it with the rest of the command surface and makes the CLI read consistently (nextflow module <verb> ...). The legacyinfoalias is retained to avoid breaking users and scripts already relying on the existing name.Test plan
./gradlew :nextflow:test --tests "nextflow.cli.module.CmdModuleInfoTest"nextflow module view <scope>/<name>worksnextflow module info <scope>/<name>still works (alias)nextflow module -hlists the command under the new name🤖 Generated with Claude Code