diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 05:29:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 05:29:27 -0500 |
| commit | 6ca452fb52c847c92704b9cd6ad13c91234eadbf (patch) | |
| tree | 17644390434dd4ec1fe0d9b073b671669bb0f623 /argv.go | |
| parent | 4802283a2819d977f2f1d2e052ce30dbc00b3489 (diff) | |
new argvv0.0.20
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/argv.go b/argv.go deleted file mode 100644 index f9b676c..0000000 --- a/argv.go +++ /dev/null @@ -1,35 +0,0 @@ -package main - -/* - this parses the command line arguements -*/ - -import ( - "go.wit.com/dev/alexflint/arg" -) - -var argv args - -type args struct { - RepoPath string `arg:"--repo" default:"./" help:"path to the .git repo"` - Hostname string `arg:"--hostname" help:"hostname to use"` - Refs bool `arg:"--refs" help:"list the git ref hashes"` - Tag string `arg:"--tag" help:"what tag name to walk"` -} - -func (args) Version() string { - return "going2git " + VERSION + " Built on " + BUILDTIME -} - -func init() { - arg.MustParse(&argv) -} - -func (a args) Description() string { - return ` -This is a demo of git2go to show how it works. - -Actually, I don't know how to use libgit2 or git2go yet so really this is just -an example of how to compile something against it. -` -} |
