From a1f6e15f28613f9371150e2842a47fb373383087 Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Tue, 16 Feb 2016 23:27:53 -0800 Subject: [PATCH] ysvd -> vaind --- cmd/{ysvd => vaind}/main.go | 16 ++++++---------- licence.txt | 2 +- readme.md | 6 +++--- vain.go | 2 +- 4 files changed, 11 insertions(+), 15 deletions(-) rename cmd/{ysvd => vaind}/main.go (87%) diff --git a/cmd/ysvd/main.go b/cmd/vaind/main.go similarity index 87% rename from cmd/ysvd/main.go rename to cmd/vaind/main.go index e78804d..d3dacf0 100644 --- a/cmd/ysvd/main.go +++ b/cmd/vaind/main.go @@ -1,5 +1,5 @@ /* -ysvd, a webserver for hosting go get vanity urls. +vaind, a webserver for hosting go get vanity urls. The go get command searches for the following header when searching for packages: @@ -13,7 +13,7 @@ https://golang.org/cmd/go/#hdr-Remote_import_paths API -Assume an instance of ysvd at example.org. In order to add a package +Assume an instance of vaind at example.org. In order to add a package example.org/foo that points at bitbucket.org/example/foo (a mercurial repository) POST the following json object: @@ -33,10 +33,6 @@ that looks like: The json object sent to server can have two fields: "repo" and "vcs". "repo" is required; leaving off the "vcs" member defaults to "git". - -Naming - -The "ysv" in ysvd stands for You're so Vain, the song by Carly Simon. */ package main @@ -51,13 +47,13 @@ import ( "github.com/kelseyhightower/envconfig" ) -const usage = `ysvd +const usage = `vaind environment vars: -YSV_PORT: tcp listen port -YSV_HOST: hostname to use -YSV_DB: path to json database +VAIN_PORT: tcp listen port +VAIN_HOST: hostname to use +VAIN_DB: path to json database ` type config struct { diff --git a/licence.txt b/licence.txt index 754c07d..1b44b3d 100644 --- a/licence.txt +++ b/licence.txt @@ -10,7 +10,7 @@ are permitted provided that the following conditions are met: * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of ysv nor the names of its contributors + * Neither the name of vaind nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/readme.md b/readme.md index 907aec7..7d6361e 100644 --- a/readme.md +++ b/readme.md @@ -1,11 +1,11 @@ # vain -`ysvd` is a vanity url server for use by the `go` tool. +`vaind` is a vanity url server for use by the `go` tool. ## installation - $ go get mcquay.me/vain/cmd/ysvd + $ go get mcquay.me/vain/cmd/vaind ## running server - $ ysvd + $ vaind diff --git a/vain.go b/vain.go index 4385fa4..bb0541d 100644 --- a/vain.go +++ b/vain.go @@ -1,6 +1,6 @@ // Package vain implements a vanity service for use by the the go tool. // -// The executable, cmd/ysvd, is located in the respective subdirectory. +// The executable, cmd/vaind, is located in the respective subdirectory. package vain import (