From 0e3fe88bb446fb78dd658f4090599cd0345d26f7 Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Wed, 8 Mar 2017 23:40:35 +0000 Subject: [PATCH] use consistent case for ctop name --- README.md | 10 +++++----- _docs/expanded.md | 2 +- config/switch.go | 2 +- main.go | 4 ++-- menus.go | 2 +- widgets/header.go | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2cd4458..d5154f5 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -

cTop

+

ctop

# Top-like interface for container metrics ctop provides a concise and condensed overview of real-time metrics for multiple containers: -

cTop

+

ctop

as well as an [expanded view][expanded_view] for inspecting a specific container. @@ -32,7 +32,7 @@ sudo chmod +x /usr/local/bin/ctop ## Usage -cTop requires no arguments and will configure itself using the `DOCKER_HOST` environment variable +ctop requires no arguments and will configure itself using the `DOCKER_HOST` environment variable ```bash export DOCKER_HOST=tcp://127.0.0.1:4243 ctop @@ -44,10 +44,10 @@ Key | Action --- | --- a | Toggle display of all (running and non-running) containers f | Filter displayed containers -H | Toggle cTop header +H | Toggle ctop header h | Open help dialog s | Select container sort field r | Reverse container sort order -q | Quit cTop +q | Quit ctop [expanded_view]: _docs/expanded.md diff --git a/_docs/expanded.md b/_docs/expanded.md index 3d13021..6d1e8e4 100644 --- a/_docs/expanded.md +++ b/_docs/expanded.md @@ -1,4 +1,4 @@ # Expanded View ctop provides an expanded, rolling view for following container metrics -

cTop

+

ctop

diff --git a/config/switch.go b/config/switch.go index 80cad9f..e16d4d5 100644 --- a/config/switch.go +++ b/config/switch.go @@ -15,7 +15,7 @@ var switches = []*Switch{ &Switch{ Key: "enableHeader", Val: true, - Label: "Enable cTop Status Line", + Label: "Enable Status Header", }, &Switch{ Key: "loggingEnabled", diff --git a/main.go b/main.go index 46ea11d..ecdba01 100644 --- a/main.go +++ b/main.go @@ -83,7 +83,7 @@ func panicExit() { } } -var helpMsg = `cTop - container metric viewer +var helpMsg = `ctop - container metric viewer usage: ctop [options] @@ -97,5 +97,5 @@ func printHelp() { } func printVersion() { - fmt.Printf("cTop version %v, build %v\n", version, build) + fmt.Printf("ctop version %v, build %v\n", version, build) } diff --git a/menus.go b/menus.go index 14a0659..ad61ae9 100644 --- a/menus.go +++ b/menus.go @@ -11,7 +11,7 @@ var helpDialog = []menu.Item{ menu.Item{"[a] - toggle display of all containers", ""}, menu.Item{"[f] - filter displayed containers", ""}, menu.Item{"[h] - open this help dialog", ""}, - menu.Item{"[H] - toggle cTop header", ""}, + menu.Item{"[H] - toggle ctop header", ""}, menu.Item{"[s] - select container sort field", ""}, menu.Item{"[r] - reverse container sort order", ""}, menu.Item{"[q] - exit ctop", ""}, diff --git a/widgets/header.go b/widgets/header.go index 76822a0..a6955c9 100644 --- a/widgets/header.go +++ b/widgets/header.go @@ -68,7 +68,7 @@ func (c *CTopHeader) SetFilter(val string) { func timeStr() string { ts := time.Now().Local().Format("15:04:05 MST") - return fmt.Sprintf("cTop - %s", ts) + return fmt.Sprintf("ctop - %s", ts) } func headerPar(x int, s string) *ui.Par {