Skip to content

Commit

Permalink
Rename gog manage to gog repository
Browse files Browse the repository at this point in the history
  • Loading branch information
andornaut committed Mar 14, 2021
1 parent 942a44d commit 020791b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Link files to Git repositories

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

## Installation

Expand Down Expand Up @@ -69,34 +69,34 @@ Available Commands:
apply Link a repository's contents to the filesystem
git Run a git command in a repository's directory
help Help about any command
manage Manage repositories
remove Remove files or directories from a repository
repository Manage repositories
Flags:
-h, --help help for gog
-r, --repository string name of repository
Use "gog [command] --help" for more information about a command.
Use "gog [command] --help" for more information about a command..
```

`gog manage --help`
`gog repository --help`

```
Manage repositories
Usage:
gog manage [command]
gog repository [command]
Available Commands:
add Add a git repository
get-default Print the name of the default repository
list Print the names of all repositories
get-default Print the name or path of the default repository
list Print the names or paths of all repositories
remove Remove a repository
Flags:
-h, --help help for repository
Use "gog manage [command] --help" for more information about a command.
Use "gog repository [command] --help" for more information about a command.
```

`gog add --help`
Expand All @@ -109,7 +109,7 @@ Usage:
Flags:
-h, --help help for add
-r, --repository string name of repository to add to
-r, --repository string name of repository
```

`gog apply --help`
Expand Down
4 changes: 2 additions & 2 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/andornaut/gog/cmd/managecmd"
"github.com/andornaut/gog/cmd/repositorycmd"
"github.com/andornaut/gog/internal/link"
"github.com/andornaut/gog/internal/repository"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -89,5 +89,5 @@ func init() {
apply.Flags().StringVarP(&repositoryFlag, "repository", "r", "", "name of repository")
remove.Flags().StringVarP(&repositoryFlag, "repository", "r", "", "name of repository")
Cmd.Flags().StringVarP(&repositoryFlag, "repository", "r", "", "name of repository")
Cmd.AddCommand(add, apply, git, remove, managecmd.Cmd)
Cmd.AddCommand(add, apply, git, remove, repositorycmd.Cmd)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package managecmd
package repositorycmd

import (
"fmt"
Expand All @@ -13,7 +13,7 @@ import (

// Cmd implements ./gog repository
var Cmd = &cobra.Command{
Use: "manage [command]",
Use: "repository [command]",
Short: "Manage repositories",
SilenceUsage: true,
}
Expand Down

0 comments on commit 020791b

Please sign in to comment.