Skip to content

Commit

Permalink
Merge pull request #60 from tamada/issue/update_directory_layouts
Browse files Browse the repository at this point in the history
Issue/update directory layouts
  • Loading branch information
tamada committed Jun 13, 2019
2 parents e492216 + 18d7eb5 commit 84419f2
Show file tree
Hide file tree
Showing 67 changed files with 2,916 additions and 3,048 deletions.
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.

0 comments on commit 84419f2

Please sign in to comment.