Skip to content

Commit 020791b

Browse files
committed
Rename gog manage to gog repository
1 parent 942a44d commit 020791b

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Link files to Git repositories
44

5-
- `gog` can be used to manage "dotfiles" in `${HOME}`, but it can also manage links to files elsewhere on the filesystem
6-
- `gog` supports multiple git repositories, which can be useful to separate personal and work files
5+
- `gog` can be used to manage "dotfiles" in `${HOME}` or elsewhere on the filesystem
6+
- `gog` supports multiple Git repositories, which can be useful to separate personal and work files
77

88
## Installation
99

@@ -69,34 +69,34 @@ Available Commands:
6969
apply Link a repository's contents to the filesystem
7070
git Run a git command in a repository's directory
7171
help Help about any command
72-
manage Manage repositories
7372
remove Remove files or directories from a repository
73+
repository Manage repositories
7474
7575
Flags:
7676
-h, --help help for gog
7777
-r, --repository string name of repository
7878
79-
Use "gog [command] --help" for more information about a command.
79+
Use "gog [command] --help" for more information about a command..
8080
```
8181

82-
`gog manage --help`
82+
`gog repository --help`
8383

8484
```
8585
Manage repositories
8686
8787
Usage:
88-
gog manage [command]
88+
gog repository [command]
8989
9090
Available Commands:
9191
add Add a git repository
92-
get-default Print the name of the default repository
93-
list Print the names of all repositories
92+
get-default Print the name or path of the default repository
93+
list Print the names or paths of all repositories
9494
remove Remove a repository
9595
9696
Flags:
9797
-h, --help help for repository
9898
99-
Use "gog manage [command] --help" for more information about a command.
99+
Use "gog repository [command] --help" for more information about a command.
100100
```
101101

102102
`gog add --help`
@@ -109,7 +109,7 @@ Usage:
109109
110110
Flags:
111111
-h, --help help for add
112-
-r, --repository string name of repository to add to
112+
-r, --repository string name of repository
113113
```
114114

115115
`gog apply --help`

cmd/cmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cmd
22

33
import (
4-
"github.com/andornaut/gog/cmd/managecmd"
4+
"github.com/andornaut/gog/cmd/repositorycmd"
55
"github.com/andornaut/gog/internal/link"
66
"github.com/andornaut/gog/internal/repository"
77
"github.com/spf13/cobra"
@@ -89,5 +89,5 @@ func init() {
8989
apply.Flags().StringVarP(&repositoryFlag, "repository", "r", "", "name of repository")
9090
remove.Flags().StringVarP(&repositoryFlag, "repository", "r", "", "name of repository")
9191
Cmd.Flags().StringVarP(&repositoryFlag, "repository", "r", "", "name of repository")
92-
Cmd.AddCommand(add, apply, git, remove, managecmd.Cmd)
92+
Cmd.AddCommand(add, apply, git, remove, repositorycmd.Cmd)
9393
}

cmd/managecmd/managecmd.go renamed to cmd/repositorycmd/repositorycmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package managecmd
1+
package repositorycmd
22

33
import (
44
"fmt"
@@ -13,7 +13,7 @@ import (
1313

1414
// Cmd implements ./gog repository
1515
var Cmd = &cobra.Command{
16-
Use: "manage [command]",
16+
Use: "repository [command]",
1717
Short: "Manage repositories",
1818
SilenceUsage: true,
1919
}

0 commit comments

Comments
 (0)