blob: add3d1cc65f5ab11f1f327c8acd8cb79e7998670 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package command
import (
"fmt"
"github.com/mitchellh/cli"
)
// VersionCommand is a Command implementation prints the version.
type VersionCommand struct {
HumanVersion string
Ui cli.Ui
}
func (c *VersionCommand) Help() string {
return ""
}
func (c *VersionCommand) Run(_ []string) int {
c.Ui.Output(fmt.Sprintf("sockaddr %s", c.HumanVersion))
return 0
}
func (c *VersionCommand) Synopsis() string {
return "Prints the sockaddr version"
}
|