npm.io
1.0.1 • Published 8 years agoCLI

repocreate

Licence
MIT
Version
1.0.1
Deps
6
Size
424 kB
Vulns
0
Weekly
0



An over-engineered but ultra-fast tool to create Github repositories from command-line!

Install

$ npm install --global repocreate

OR

$ sudo npm install --global repocreate

Preview

Usage
 Usage: repocreate <command> [option]

 Commands:
  -c, --create         name of the repository
  -d, --description    description of the repository

 NOTE : --description is optional

 Example:
  $ repocreate -c foobar
  $ repocreate -c "foo bar" -d Just another foobarism

 Help:
  -h, --help           Display help

NOTE

  • If the name of your repository is of more than one word, pass the argument as a single string inside single or double quotes.
  • You don't have to put the descriptions inside quotes. Things will work fine even if you do that!
Setup
  • Generate your access token from here and copy it.
  • Run command $ repocreate -c testrepo
  • A token.json file will open in Sublime with -
    {
      "username": "enter your github username",
      "token":"paste the access token"
    }
  • Enter your username, paste the token and save the file. You are ready to go!

NOTE

In case, you are not using sublime, follow the given steps -

  • Manually open the token.json file saved under .repocreate folder under home directory

or

  • Open the file using : $ atom/code/vi ~/.repocreate/token.json
  • Copy-paste the genereated access token
  • Save the file and that's it.
Why?
  • I don't know, it's silly, but I use it. I don't know.
License

MIT Rishi Giri

Keywords