We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
via #64
volt list -f can access and show information of lock.json structure.
volt list -f
Show all repositories:
$ volt list -f '{{ range .Repos }}{{ println .Path }}{{ end }}'
Show repositories used by current profile:
$ volt list -f '{{ range .Profiles }}{{ if eq $.CurrentProfileName .Name }}{{ range .ReposPath }}{{ println . }}{{ end }}{{ end }}{{ end }}'
Some useful functions are defined by volt.
This accesses to current profile. So above code (Show repositories used by current profile) can be written like this:
Show repositories used by current profile
$ volt list -f '{{ range currentProfile.ReposPath }}{{ println . }}{{ end }}'
Returns given name's profile.
Returns JSON representation of value. The arguments are same as json.MarshalIndent().
json.MarshalIndent()
format: "v{major}.{minor}.{patch}"
major/minor/patch version number
The text was updated successfully, but these errors were encountered:
volt profile show
volt profile list
cmd/list: Add -f flag (fix #162)
90a1f0f
c9f83bd
No branches or pull requests
via #64
Basic feature
volt list -f
can access and show information of lock.json structure.Example
Show all repositories:
Show repositories used by current profile:
Functions
Some useful functions are defined by volt.
currentProfile (profile)
This accesses to current profile.
So above code (
Show repositories used by current profile
) can be written like this:profile name (profile)
Returns given name's profile.
json value [prefix [indent]] (string)
Returns JSON representation of value.
The arguments are same as
json.MarshalIndent()
.version (string)
format: "v{major}.{minor}.{patch}"
versionMajor (number)
versionMinor (number)
versionPatch (number)
major/minor/patch version number
The text was updated successfully, but these errors were encountered: