GithubHelp home page GithubHelp logo

draftcreate / draft-pack-repo Goto Github PK

View Code? Open in Web Editor NEW
7.0 21.0 11.0 66 KB

The Draft pack repository plugin.

License: MIT License

Makefile 11.56% Go 52.89% Shell 30.81% PowerShell 4.73%
draft-plugin

draft-pack-repo's People

Contributors

alexpilotti avatar bacongobbler avatar birdayz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

draft-pack-repo's Issues

caching strategy

Currently we're pulling down and storing the whole git repo. We should consider only pulling down the contents of the packs/ dir of the repository to save some bits.

pack-repo -h output should be redirected

The get.sh script's testVersion function calls pack-repo -h, which writes its usage info to stdout.
While this is definitely not a big issue, it generates some unnecessary noise in the draft init output that could be avoided by redirecting it:

https://github.com/Azure/draft-pack-repo/blob/3425e8855d5ec61cdaa938a92d74d92a35346b10/scripts/get.sh#L125

draft.exe init
Creating C:\Users\Administrator\.draft
Creating C:\Users\Administrator\.draft\plugins
Creating C:\Users\Administrator\.draft\packs
Creating C:\Users\Administrator\.draft\logs
Creating C:\Users\Administrator\.draft\config.toml
Installing default plugins...
Downloading https://azuredraft.blob.core.windows.net/draft/pack-repo-canary-windows-amd64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3008k  100 3008k    0     0   667k      0  0:00:04  0:00:04 --:--:--  728k
Preparing to install into C:\Users\Administrator\.draft/plugins/draft-pack-repo
draft-pack-repo installed into C:\Users\Administrator\.draft/plugins/draft-pack-repo/draft-pack-repo
The Draft pack repository plugin.

Usage:
  pack-repo [command]

Available Commands:
  add         add a pack repository
  help        Help about any command
  list        list all installed pack repositories
  remove      remove a pack repository
  update      fetch the newest version of all pack repositories using git.
  version     display version information

Flags:
      --debug   enable verbose output
  -h, --help    help for pack-repo

Use "pack-repo [command] --help" for more information about a command.
Installed plugin: pack-repo
Installation of default plugins complete
Installing default pack repositories...
Installing pack repo from https://github.com/Azure/draft
Installed pack repository C:\Users\Administrator\.draft\packs\github.com\Azure\draft
Installation of default pack repositories complete
$DRAFT_HOME has been configured at C:\Users\Administrator\.draft.
Happy Sailing!

fix `pack-repo add`

currently pack-repo add installs a pack repository from github.com/myorg/myrepo to ~/.draft/packs/myrepo. The pack repository should really be installed at ~/.draft/packs/github.com/myorg/myrepo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.