Repository navigation
feat(cli)!: arrange the commands as groups of commands - #43
Merged
Merged
Conversation
Every command is now `nnnotes <group> <command>`: - config init|set|unset|check|path, servers - catalog keys|browse|versions|import|fetch|diff, bundle pull - master version|download|decode - export assets|episode|story|live|live2d|spot|room|shader|audio|ui - apk settings|hca-key - store plan|run|verify - voices list|search|summary|get - site build -o SITE, music-data -o FILE The global options are accepted before or after the command name, and include --store and --json. Every command prints a short summary, or with --json its report as JSON; notes and errors go to standard error. Commands that write files take -o/--out. Option names: - --catalog-version pins the international resource version (the [catalog] version setting); --stored-catalog selects a catalog version of the store for export assets and store plan. - site build serves the regions of --site-region; --region is the global [catalog] region. - voices search limits the search to --search-language; voices list shows the text in the global --language. - master download takes --fetch-workers; voices get takes --flac-level. - --workers of master decode and store verify default to the CPUs the process may use; --workers 0 runs without parallel workers (one thread for music-data). Each group is a module of nnnotes.cli. docs/cli.md lists every command and argument; python -m nnnotes.cli.reference writes it from the parser, and a test keeps it current. BREAKING CHANGE: the command names and the options above changed; the previous names are not accepted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Every command is now
nnnotes <group> <command>:configinit,set,unset,check,pathserverscatalogkeys,browse,versions,import,fetch,diffbundlepullmasterversion,download,decodeexportassets,episode,story,live,live2d,spot,room,shader,audio,uiapksettings,hca-keystoreplan,run,verifyvoiceslist,search,summary,getsitebuild -o SITEmusic-data--storeand--jsonare global options.--jsonits report as JSON. Commands that write files take-o/--out.--catalog-versionpins the international resource version;--stored-catalogselects a catalog version of the store (export assets,store plan).site build --site-regionchooses the regions of a site;voices search --search-languagelimits the search;master download --fetch-workers;voices get --flac-level.--workersofmaster decodeandstore verifydefault to the CPUs the process may use;--workers 0runs without parallel workers.docs/cli.mdis generated from the parser (python -m nnnotes.cli.reference docs/cli.md); a test keeps it current, and every command and argument has help.The previous command names are not accepted.