Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/update directory layouts #60

Merged
merged 6 commits into from
Jun 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ update_version:
sed -e 's!Version-[0-9.]*-yellowgreen!Version-${VERSION}-yellowgreen!g' -e 's!tag/v[0-9.]*!tag/v${VERSION}!g' $$i > a ; mv a $$i; \
done

@sed 's/const VERSION = .*/const VERSION = "${VERSION}"/g' common/config.go > a
@mv a common/config.go
@sed 's/const VERSION = .*/const VERSION = "${VERSION}"/g' lib/config.go > a
@mv a lib/config.go
@echo "Replace version to \"${VERSION}\""

setup: deps update_version
Expand All @@ -33,7 +33,7 @@ test: setup format lint
$(GO) test -covermode=count -coverprofile=coverage.out $$(go list ./...)

build: setup
cd cmd/rrh; $(GO) build
$(GO) build
cd cmd/rrh-helloworld; $(GO) build

lint: setup
Expand All @@ -47,7 +47,7 @@ format: setup
# However, goimports could not accept package name 'main'.
# Therefore, we replace 'main' to the go source code name 'rrh.go'
# Other packages are no problem, their have the same name with directories.
goimports -w $$(go list ./... | sed 's/github.com\/tamada\/rrh\///g')
goimports -w $$(go list ./... | sed 's/github.com\/tamada\/rrh//g' | sed 's/^\///g')

install: test build
$(GO) install $(LDFLAGS)
Expand Down
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ AVAILABLE SUB COMMANDS:
import import the given database.
list print managed repositories and their groups.
mv move the repositories from groups to another group.
path print paths of specified repositories.
prune prune unnecessary repositories and groups.
repository manages repositories.
rm remove given repository from database.
Expand Down Expand Up @@ -339,20 +338,6 @@ ARGUMENTS
TO specifies move to, formatted in <GROUP_NAME>
```

#### `rrh path`

Prints paths of the specified repositories.
This sub command is deprecated, instead of [`rrh repository`](#rrh_repository) command.

```sh
rrh path [OPTIONS] <REPOSITORIES...>
OPTIONS
-m, --partial-match treats the arguments as the patterns.
-r, --show-repository-id show repository name.
ARGUMENTS
REPOSITORIES repository ids.
```

#### `rrh prune`

Deletes unnecessary groups and repositories.
Expand Down Expand Up @@ -689,7 +674,6 @@ RRH means "Repositories, Ready to Hack," is not the abbreviation of the Red Ridi
* [`rrh import`](#rrh-import)
* [`rrh list`](#rrh-list)
* [`rrh mv`](#rrh-mv)
* [`rrh path`](#rrh-path)
* [`rrh prune`](#rrh-prune)
* [`rrh repository`](#rrh-repository)
* [`rrh rm`](#rrh-rm)
Expand Down
93 changes: 0 additions & 93 deletions add/add.go

This file was deleted.

115 changes: 0 additions & 115 deletions add/add_cmd.go

This file was deleted.

Loading