draftcreate / draft-pack-repo Goto Github PK
View Code? Open in Web Editor NEWThe Draft pack repository plugin.
License: MIT License
The Draft pack repository plugin.
License: MIT License
As per the latest release of glide, it would seem that it'd make sense to migrate over to dep as that is starting to be absorbed into the core Go toolchain according to their roadmap.
See https://github.com/Azure/draft/tree/master/.circleci for an example on how to fix this
Due to the lack of error checking, if draft cannot be found, get.sh will try to install the plugin in /plugins/draft-pack-repo, causing draft init to fail:
${DRAFT_PLUGIN_PATH:="$(draft home)/plugins/draft-pack-repo"}
See: https://github.com/Azure/draft-pack-repo/blob/master/scripts/get.sh#L28
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.
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:
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!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.