X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/195b3f3cd0870195c546fec3e05522c0d1c89b72..33e1bbfb47da58c94bb705324362c4c709ac43bb:/services/arv-git-httpd/usage.go diff --git a/services/arv-git-httpd/usage.go b/services/arv-git-httpd/usage.go deleted file mode 100644 index 11b3b9e4bb..0000000000 --- a/services/arv-git-httpd/usage.go +++ /dev/null @@ -1,62 +0,0 @@ -package main - -import ( - "encoding/json" - "flag" - "fmt" - "os" -) - -func usage() { - c := defaultConfig() - c.Client.APIHost = "zzzzz.arvadosapi.com:443" - exampleConfigFile, err := json.MarshalIndent(c, " ", " ") - if err != nil { - panic(err) - } - fmt.Fprintf(os.Stderr, ` - -arv-git-httpd provides authenticated access to Arvados-hosted git repositories. - -See http://doc.arvados.org/install/install-arv-git-httpd.html. - -Usage: arv-git-httpd [-config path/to/arv-git-httpd.yml] - -Options: -`) - flag.PrintDefaults() - fmt.Fprintf(os.Stderr, ` -Example config file: - %s - -Client.APIHost: - - Address (or address:port) of the Arvados API endpoint. - -Client.AuthToken: - - Unused. Normally empty, or omitted entirely. - -Client.Insecure: - - True if your Arvados API endpoint uses an unverifiable SSL/TLS - certificate. - -Listen: - - Local port to listen on. Can be "address:port" or ":port", where - "address" is a host IP address or name and "port" is a port number - or name. - -GitCommand: - - Path to git or gitolite-shell executable. Each authenticated - request will execute this program with the single argument - "http-backend". - -RepoRoot: - - Path to git repositories. - -`, exampleConfigFile) -}