Skip to content

haroldduan/giprote.commandline

Repository files navigation

giprote.commandline version license date

Overview

giprote,it is AVATech gitea project template kits.

haroldduan@Think-Harold:~$ gpt -v
         _                            _
  __ _  |_|  _  __   _ ___   _ _   __| |__    _ __
 / _  \  _  |  _  \ | `___| / _ \ |__   __|  / _  \
| (_| | | | | |_) ) | |    | | | |   | |    | |_|_/
 \__  | | | | |_ /  | |    | |_| |   | |_   | \__ _
 |___/  |_| |_|     |_|     \_ _/    \___|   \_ __/

  0.1.1
* 1.0.0
haroldduan@Think-Harold:~$ gpt -h

Usage:
  gpt -h|--help                  Show help message
  gpt -v|--version               Print out the installed version of gpt
  gpt init                       Init repo
    --commit                     Init repo commit
    --local-branch               Init repo local branch
  gpt gen                        Generate source
    --prof                       Generate source project folders
    --readme                     Generate source README.md
    --ignore                     Generate source .gitignore
  gpt -u|--upgrade               Upgrade to the latest version.

Example:
  gpt init --commit              Init current repo commit
  gpt init --local-branch        Init current repo local branch
  gpt gen --prof                 Generate source project folders
  gpt gen --readme               Generate source README.md
Note:
  If you have some problems,you can pull iusses to this repo:
    https://github.com/EDITeam/giprote.commandline.git

Dependency

Install

Linux|MacOS

Install by bash

$ wget -qO- https://gitee.com/haroldduan/giprote.commandline/raw/1.3.4/install.sh | bash

or

$ curl -o- https://gitee.com/haroldduan/giprote.commandline/raw/1.3.4/install.sh | bash

Windows

Install by PowerShell

PS C:\Users\Administrator> Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://gitee.com/haroldduan/giprote.commandline/raw/1.3.4/install.ps1'))

Usage

  • help
$ gpt -h

or

$ gpt --help
  • version
$ gpt -v

or

$ gpt --version
  • init commit
$ gpt init --commit
  • init local branches
$ gpt init --local-branch
  • generate project folders
$ gpt gen --prof
  • generate repo readme
$ gpt gen --readme

Upgrade

$ gpt -u

or

$ gpt --upgrade

ErrorProcess

  • Error Description
bash: gpt: command not found
$ grep -q "$HOME/.giprote/giprote.commandline" $HOME/.bashrc || cat>>$HOME/.bashrc<<EOF
export PATH=$PATH:$HOME/.giprote/giprote.commandline
export giprote_dir=$HOME/.giprote/giprote.commandline
EOF

or

Go $HOME directory,open .bashrc file add these codes:

export PATH=$PATH:$HOME/.giprote/giprote.commandline
export giprote_dir=$HOME/.giprote/giprote.commandline

Open Git-Bash or Bash terminal,execute these command:

$ source .bashrc

Contributors

Harold.Duan Pancy.Fan Aaton.Kang Shuo.Liu

Thanks

Team RDC-Project Team RDC-Product