From eac80b3843dbd94de2fc00e29c885dd90e261679 Mon Sep 17 00:00:00 2001 From: Clemens Fries Date: Sun, 25 Nov 2018 11:06:32 +0100 Subject: Rename project from 'clockrotz' to 'lettersnail' You can't always wait for the right name to appear before starting a project, so I chose a strange name that wasn't good. I finally came up with a name I like. --- cmd/check.go | 4 ++-- cmd/create.go | 6 +++--- cmd/debug.go | 4 ++-- cmd/next.go | 6 +++--- cmd/run.go | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) (limited to 'cmd') diff --git a/cmd/check.go b/cmd/check.go index e825d29..6f8e0be 100644 --- a/cmd/check.go +++ b/cmd/check.go @@ -20,7 +20,7 @@ package cmd import ( "fmt" "github.com/docopt/docopt.go" - . "github.com/githubert/clockrotz/common" + . "github.com/githubert/lettersnail/common" "os" "path/filepath" "sort" @@ -30,7 +30,7 @@ var usageCheck = // tag::check[] ` Usage: - clockrotz check [--silent] [FILE] + lettersnail check [--silent] [FILE] Options: --silent Suppress output, useful for silent checks. diff --git a/cmd/create.go b/cmd/create.go index ee682fa..95bbdc9 100644 --- a/cmd/create.go +++ b/cmd/create.go @@ -21,7 +21,7 @@ import ( "bufio" "fmt" "github.com/docopt/docopt.go" - . "github.com/githubert/clockrotz/common" + . "github.com/githubert/lettersnail/common" "io/ioutil" "os" "os/exec" @@ -34,7 +34,7 @@ var usageCreate = // tag::create[] ` Usage: - clockrotz create [--draft=FILE] [options] + lettersnail create [--draft=FILE] [options] Options: --help Show this help. @@ -50,7 +50,7 @@ Options: func Create(argv []string, conf *Configuration) { args, _ := docopt.Parse(usageCreate, argv, true, "", false) - tmpFile, err := ioutil.TempFile("", "clockrotz") + tmpFile, err := ioutil.TempFile("", "lettersnail") if err != nil { fmt.Printf("Error while creating temporary file: %s\n", err.Error()) diff --git a/cmd/debug.go b/cmd/debug.go index 343f0be..8873ac2 100644 --- a/cmd/debug.go +++ b/cmd/debug.go @@ -20,7 +20,7 @@ package cmd import ( "fmt" "github.com/docopt/docopt.go" - . "github.com/githubert/clockrotz/common" + . "github.com/githubert/lettersnail/common" "os" ) @@ -28,7 +28,7 @@ var usageDebug = // tag::debug[] ` Usage: - clockrotz debug FILENAME + lettersnail debug FILENAME Options: --help Show this help. diff --git a/cmd/next.go b/cmd/next.go index 15464bd..ff32ec0 100644 --- a/cmd/next.go +++ b/cmd/next.go @@ -20,7 +20,7 @@ package cmd import ( "fmt" "github.com/docopt/docopt.go" - . "github.com/githubert/clockrotz/common" + . "github.com/githubert/lettersnail/common" "path/filepath" "sort" "strconv" @@ -31,7 +31,7 @@ var usageNext = // tag::next[] ` Usage: - clockrotz next [--days=DAYS | --all] + lettersnail next [--days=DAYS | --all] Options: --help Show this help. @@ -72,7 +72,7 @@ func Next(argv []string, conf *Configuration) { message.Conf.MergeWith(conf) if errs := message.Verify(); errs != nil { - fmt.Printf("Error in message \"%s\". Please run 'clockrotz check'.\n", message.Name) + fmt.Printf("Error in message \"%s\". Please run 'lettersnail check'.\n", message.Name) continue } diff --git a/cmd/run.go b/cmd/run.go index 43ca6d7..11ba560 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -21,7 +21,7 @@ import ( "crypto/tls" "fmt" "github.com/docopt/docopt.go" - . "github.com/githubert/clockrotz/common" + . "github.com/githubert/lettersnail/common" "github.com/jordan-wright/email" "net/mail" "net/textproto" @@ -35,7 +35,7 @@ var usageRun = // tag::run[] ` Usage: - clockrotz run [options] + lettersnail run [options] Options: --help Show this help. @@ -103,7 +103,7 @@ func Run(argv []string, conf *Configuration) { if verificationError { // FIXME: This suggests that other messages were not sent, but they were.... fmt.Println("There were errors when verifying one or more messages.") - fmt.Println("Please run 'clockrotz check'") + fmt.Println("Please run 'lettersnail check'") os.Exit(1) } } -- cgit