Skip to content

Commit

Permalink
Merge branch 'master' of github.com:andornaut/gog
Browse files Browse the repository at this point in the history
* 'master' of github.com:andornaut/gog:
  Update README.md
  Support globs in repository names
  Update README
  Update README
  Refactor
  Update deps and README
  Switch from urfave/cli to spf13/cobra
  • Loading branch information
andornaut committed Aug 12, 2018
2 parents 93f07ab + 0424e52 commit b8bbf69
Show file tree
Hide file tree
Showing 94 changed files with 11,442 additions and 5,789 deletions.
20 changes: 16 additions & 4 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@


[[constraint]]
name = "github.com/urfave/cli"
version = "1.20.0"
name = "github.com/spf13/cobra"
version = "0.0.3"

[prune]
go-tests = true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $(PLATFORMS):
GOARCH=amd64 GOOS=$@ go build -o "$(DISTDIR)/$(TARGET)-$@-amd64"

$(TARGET): $(GODEP)
dep ensure
$(GODEP) ensure
go build -o $@

clean:
Expand Down
78 changes: 49 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Link files to Git repositories
### Pre-compiled binary

Download one of the pre-compiled binaries from the
[releases page](https://github.com/example/gog/releases), and then copy it to
your path: `chmod +x gog-linux-amd64 && cp gog-linux-amd64 /usr/local/bin/gog`
[releases page](https://github.com/andornaut/gog/releases), and then move it onto
your path: `chmod +x gog-linux-amd64 && sudo mv gog-linux-amd64 /usr/local/bin/gog`

### Compile and install from git

Expand Down Expand Up @@ -54,50 +54,70 @@ ls -l ~/.config/foorc | awk '{print $9,$10,$11}'
`gog --help`

```
NAME:
gog - Go Overlay Git
Link files to Git repositories
Usage:
gog [command]
USAGE:
gog command [options] [arguments...]
Available Commands:
add Add files or directories to a repository
apply Link a repository's contents to the filesystem
git Run a git command in a repository's directory
help Help about any command
remove Remove files or directories from a repository
repository Manage repositories
DESCRIPTION:
Link files to Git repositories
Flags:
-h, --help help for gog
-r, --repository string name of repository
COMMANDS:
repository Manage repositories
add Add files or directories to a repository
remove Remove files or directories from a repository
apply Create symbolic links from a repository's files to the root filesystem
git Run a git command in a repository
Use "gog [command] --help" for more information about a command.
```

`gog repository --help`

```
NAME:
gog repository - Manage repositories
Manage repositories
Usage:
gog repository [command]
USAGE:
gog repository command [options] [arguments...]
Available Commands:
add Add a git repository
get-default Print the name of the default repository
list Print the names of all repositories
remove Remove a repository
COMMANDS:
add Add and initialize a git repository
remove Remove a repository
get-default Print the name of the default repository
list Print the names of all repositories
Flags:
-h, --help help for repository
Use "gog repository [command] --help" for more information about a command.
```

`gog add --help`

```
NAME:
gog add - Add files or directories to a repository
Add files or directories to a repository
Usage:
gog add [paths...]
Flags:
-h, --help help for add
-r, --repository string name of repository to add to
```

`gog apply --help`

```
Link a repository's contents to the filesystem
USAGE:
gog add [--repository NAME] <path> [paths...]
Usage:
gog apply
OPTIONS:
--repository NAME, -r NAME NAME of the target repository
Flags:
-h, --help help for apply
-r, --repository string name of repository to apply
```

### Notes
Expand Down
104 changes: 0 additions & 104 deletions cmd/addremove.go

This file was deleted.

19 changes: 0 additions & 19 deletions cmd/apply.go

This file was deleted.

18 changes: 0 additions & 18 deletions cmd/git.go

This file was deleted.

Loading

0 comments on commit b8bbf69

Please sign in to comment.