Repository navigation
map --json for programs; --file reads another hostshift.yaml - #14
Merged
Merged
Conversation
… another hostshift.yaml map --json is now an object: the layer the map came from (file, ddev or flags), its source, and the sites with name, canonical, base, aliases and, when a slug is given, variant. Without a slug it lists the sites instead of failing, so a caller can read a file's canonicals and bases. --file <path> resolves from a hostshift.yaml other than the checkout's, and --file - from stdin, so a program can hand over one commit's file without writing it into a working tree. rewrite refuses -, since stdin is its body. hosts --json prints the hostnames as one array. A go-installed binary reports its module version instead of dev. 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.
hostshift map --jsonprints an object: the layer the map came from (file,ddevorflags), its source, and each site's name, canonical, base and aliases, plus the variant when--slugis given. Without a slug it lists the sites instead of failing, so a program can read a file's canonicals and bases. Breaking: it used to print an array; nothing in this repo or the add-on read it.--file <path>resolves from a hostshift.yaml other than the checkout's, and--file -reads it from stdin, so a caller can pass one commit's file (git show <sha>:hostshift.yaml | hostshift map --json --file - -C /) without writing it into a working tree.rewriterefuses-, since its stdin is the body.hostshift hosts --jsonprints the hostnames as one array.go installbuild reports its module version instead ofdev.foreman's db-pull uses this in place of its own hostshift.yaml parser, and needs it released as v0.3.0.
make testandmake vetpass.🤖 Generated with Claude Code