1.1.16 • Published 2 years ago

grimoire-tool v1.1.16

Weekly downloads
2
License
ISC
Repository
github
Last release
2 years ago

grimoire-tool

常用命令封装,基于 urfave/cli 实现。

Description

一键工具:

  • github 代码库同步(sync)一键同步 github 仓库。
  • hexo 博客预览(preview)、发布(publish)
  • space 目录空间查看工具

Usage

NAME:
   grimoire-tool - grimoire-tool is a tool of grimoire, batch execute commands.

USAGE:
   grimoire-tool [global options] command [command options] [arguments...]

VERSION:
   1.1.0

COMMANDS:
   space    space of current directory.
   help, h  Shows a list of commands or help for one command

   git:
     git  git commands: sync.

   hexo:
     hexo  hexo blog commands: preview, publish.

   markdown:
     markdown  markdown commands: toc.

GLOBAL OPTIONS:
   --message value, -m value  the commit message of git (default: "auto commit")
   --help, -h                 show help
   --version, -v              print the version

git sync

执行:

grimoire-tool --m "auto commit " git sync
2019/10/05 11:34:56 status:
2019/10/05 11:34:56 ## master...origin/master
 M command/git/status.go
 M command/git/sync.go

2019/10/05 11:34:56 has file
2019/10/05 11:34:56 Execute git status finished, some file will be committed
2019/10/05 11:34:56 Execute git add finished.
2019/10/05 11:34:56 Execute git commit finished.
2019/10/05 11:34:58 Execute git pull finished.
2019/10/05 11:35:03 Execute git push finished.
2019/10/05 11:35:03 Execute Command finished.

space

查看目录空间:

➜  grimoire-tool git:(master) grimoire-tool space                      
16B     .gitignore
116B    after
117B    before
151B    CHANGELOG.md
396B    flag
814B    Gopkg.toml
1K      Gopkg.lock
2K      main.go
2K      README.md
7K      command
10K     lib
34K     LICENSE
1M      .git

Install

方式一,通过npm安装:

npm install grimoire-tool -g

方式二,通过 go 安装:
To install, use go get:

go get -u github.com/LeungGeorge/grimoire-tool

Contribution

  1. Fork (https://github.com/LeungGeorge/grimoire-tool/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

LeungGeorge

1.1.1

2 years ago

1.1.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.0.9

2 years ago

1.1.7

2 years ago

1.1.5

2 years ago

1.1.10

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago