MCPcopy Create free account
hub / github.com/dropbox/dbxcli / versionCommand

Function versionCommand

cmd/version.go:54–59  ·  view source on GitHub ↗
(cmd *cobra.Command, version string)

Source from the content-addressed store, hash-verified

52}
53
54func versionCommand(cmd *cobra.Command, version string) error {
55 info := newVersionOutput(version)
56 return commandOutput(cmd).Render(func(w io.Writer) error {
57 return renderVersion(w, info)
58 }, withJSONCommand(cmd, newVersionOperationOutput(info)))
59}
60
61func renderVersion(out io.Writer, info versionOutput) error {
62 fmt.Fprintln(out, "dbxcli version:", info.Version)

Calls 6

newVersionOutputFunction · 0.85
commandOutputFunction · 0.85
renderVersionFunction · 0.85
withJSONCommandFunction · 0.85
RenderMethod · 0.80