Imported Upstream version 1.0.1

This commit is contained in:
Sébastien Delafond committed 2017-07-18 11:45:29 +02:00
1 parent 1ee35b841d
commit 4f12259bc0
5531 files changed
+1834599 -742844

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
package cmd
import (
"fmt"
"github.com/smira/aptly/aptly"
"github.com/smira/commander"
)
func aptlyVersion(cmd *commander.Command, args []string) error {
if len(args) != 0 {
cmd.Usage()
return commander.ErrCommandError
}
fmt.Printf("aptly version: %s\n", aptly.Version)
return nil
}
func makeCmdVersion() *commander.Command {
return &commander.Command{
Run: aptlyVersion,
UsageLine: "version",
Short: "display version",
Long: `
Shows aptly version.
ex:
$ aptly version
`,
}
}