feat(cli): headless/CI commands (mods show, --dry-run, doctor, completions) - #37
Merged
Conversation
Round out the scriptable CLI on top of --json: - mods show <id...>: print resolved Workshop details (text or --json) - --dry-run on set, mods add, and mods remove: preview the change, write nothing - doctor: composed health checks (api-key, config, build, validation); non-zero exit on error, --offline to skip the network check - dynamic shell completions: profile IDs, installed mod IDs, config keys README updated for each command. All additive and backward compatible.
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
Rounds out the scriptable CLI on top of the new
--jsonflag so pzmod worksend to end in scripts and CI. All additive and backward compatible.
What's included
mods show <id...>: print resolved Workshop details (title, type, size,mod IDs, maps, collection children) as text or
--json.--dry-runonset,mods add,mods remove: print the change, writenothing (no file write, no backup snapshot). Handy with
--jsonin CI.doctor: one-shot health check (api-key, config, build, validation) witha non-zero exit on error.
--offlineskips the network check.--profilenames, installed IDs formods remove/show,config keys for
get/set. Local only, no network in completion hooks.