From 2c6dc806efb2443daa82948482b1b1e313936716 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 31 Dec 2024 13:03:06 -0600 Subject: Day 1. test build should work Signed-off-by: Jeff Carr --- argv.go | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 argv.go (limited to 'argv.go') diff --git a/argv.go b/argv.go new file mode 100644 index 0000000..d6ffbaf --- /dev/null +++ b/argv.go @@ -0,0 +1,33 @@ +package main + +/* + this parses the command line arguements +*/ + +import ( + "go.wit.com/dev/alexflint/arg" +) + +var argv args + +type args struct { + Repo string `arg:"--repo" default:"/etc/gowebd/repomap" help:"what .git repo to use?"` + Hostname string `arg:"--hostname" default:"go.wit.com" help:"hostname to use"` +} + +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. +` +} -- cgit v1.2.3