gpmx: Git Package Manager, make you manage the repository easier「建议收藏」

gpmx: Git Package Manager, make you manage the repository easier「建议收藏」基于 nodejs 的 cli 工具,用于管理管理 git 项目。 当你的电脑里面包含了各种项目目录的时候,是否会觉得杂乱无章,要找到真正要找的项目,会显示十分困难,不利于管理。 gpmx 就是做这样的事情,把你的项目,统一管理,更易管理。 想取名 gpm,但是 npm 上已被抢注,而且 linux 下有 gpm 环境变量已被占用。 求 star,求 pr :)

Build Status Dependency License Node

Git Package Manager, make you manage the repository easier

Features

  • support Github, Gitlab, etc
  • add, remove, clean, cache, list commands
  • score, humanize, easier to manager
  • add repository in multi directories

Installation

npm install @axetroy/gpmx -g

Usage

gpmx -h

# print out

  Usage: gpmx <command> [options]


  Commands:

    add|a <repo>                      clone repo into local dir
    remove|rm                         remove a repo
    list|ls                           display the all repo
    clean|cl                          clear the cache
    search|sr <key>                   search repository witch add by gpm
    relink|rl                         relink the base dir which contain repositories if you delete repository manually
    config|cf <action> [key] [value]  handle the config, read and set
    runtime|rt                        print the program runtime, useful for submit a issue
    import|ip [options] <dir>         register a repository to GPM

  Git Package Manager, make you manage the repository easier

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

Config

this is a default config, it will be generated in ~/.gpmx by default

// ~/.gpmx/gpmx.config.json
const config = {
  "name": "gpmx",   // user name
  "base": "gpmx"    // the repositories base dir, all repository will be install in this dir
}

Example

gpmx add https://github.com/zeit/release.git gpmx add https://github.com/axetroy/gpm.git gpmx add https://github.com/axetroy/ymli.git gpmx ls # print out github.com: axetroy: gpm: /home/axetroy/gpmx/github.com/axetroy/gpm ymli: /home/axetroy/gpmx/github.com/axetroy/ymli zeit: release: /home/axetroy/gpmx/github.com/zeit/release

Uninstall

npm uninstall @axetroy/gpmx -g
rm -rf ~/.gpmx      # all file, cache, contain in this dir

Contribute

git clone https://github.com/axetroy/gpm.git
cd ./gpm
yarn
./bin/gpmx

You can flow Contribute Guide

License

The MIT License

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
转载请注明出处: https://daima100.com/12900.html

(0)

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注