gpmx.dart

Build Status License Node

Git Package Manager, make you manage the repository easier

Features

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

Installation

// TODO

Requirement

  • dart

Supports

  • Windows
  • x Linux
  • x MacOS

Usage

gpmx -h

# print out

  Usage: gpmx <command> [options]

    Git Package Manager, make you manage the repository easier, Power by Dart

  Commands:
    list              display the all repo.
    add <repo>        clone repo into local dir.
    remove            remove a repo.
    clean             clean the temp/cache.
    runtime           print the program runtime, useful for submit a issue.
    relink            relink the base dir which contain repositories if you delete repository manually.
    import <dir>      register a repository to GPM.

  Options:
    -V, --version      print the current version
    -h, --help         print the help info about 

Config

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

{
  "name": "gpmx",
  "base": "gpmx"
}
  • name: user name
  • base: 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

// TODO

Contribute

git clone https://github.com/axetroy/gpm.dart.git
cd ./gpm.dart
pub get
dart ./bin/gpmx

You can flow Contribute Guide

License

The MIT License

Libraries

add

clean

config

git_dir_config

gpmx

import

list

prepare

remove

runtime

utils