mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
aptly version command.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gonuts/commander"
|
||||
"github.com/gonuts/flag"
|
||||
)
|
||||
|
||||
func aptlyVersion(cmd *commander.Command, args []string) error {
|
||||
fmt.Printf("aptly version: %s\n", Version)
|
||||
return nil
|
||||
}
|
||||
|
||||
func makeCmdVersion() *commander.Command {
|
||||
return &commander.Command{
|
||||
Run: aptlyVersion,
|
||||
UsageLine: "version",
|
||||
Short: "display version",
|
||||
Long: `
|
||||
Shows aptly version.
|
||||
|
||||
ex:
|
||||
$ aptly version
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-version", flag.ExitOnError),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user