mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-06-27 04:28:30 +00:00
*: move version from library to cmd, and generate it
oh dang, I released 0.5.2 and 0.5.3 without correctly setting the version string :-\ Ideally this "-dev" is attempting to be like the git. So, ditch the version in the library. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
84c498b361
commit
630389965c
3 changed files with 5 additions and 26 deletions
|
@ -14,9 +14,12 @@ import (
|
|||
"github.com/vbatts/go-mtree"
|
||||
)
|
||||
|
||||
var Version string
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Name = mtree.AppName
|
||||
app.Name = "gomtree"
|
||||
app.Version = Version
|
||||
app.Usage = "map a directory hierarchy"
|
||||
app.Description = `The gomtree utility compares the file hierarchy rooted in
|
||||
the current directory against a specification read from file or standard input.
|
||||
|
@ -26,7 +29,6 @@ hierarchy or the specification.
|
|||
|
||||
This tool is written in likeness to the BSD MTREE(6), with notable additions
|
||||
to support xattrs and interacting with tar archives.`
|
||||
app.Version = mtree.Version
|
||||
// cli docs --> https://github.com/urfave/cli/blob/master/docs/v2/manual.md
|
||||
app.Flags = []cli.Flag{
|
||||
// Flags common with mtree(8)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue