$ git clone https://github.com/dibyasonu/nlt-github.git
$ pip install --editable .
-
First we need to create a user. Creating a user creates a personal access token and stores the data to access the token locally
$ nlt config --adduser
-
We add files like gitignore, LICENSE and README. (Optional)
$ nlt add --gitignore
shows templates list for different languages, the user can select any no of languages and accordingly gitignore is addded to your project folder.$ nlt add --license
shows templates list for different LICENSE, the user can select any one and LICENSE file is generated and accordingly addded to your project folder.$ nlt add --readme
adds a README.md to your project. -
We create a Repo in your github account. We upload the project from the terminal.
$ nlt create-remote
Prompts for the username and the details like repo name and Description of the repo. It creates a repo according to given details, and adds its remote address to the origin referrence to the local project.$ nlt create-remote --privy
It does the above task but the repo created is a private repo.Now you can push the project simply by
git push --all
$ nlt --help
Usage: nlt [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
add Add required files
config Configure Users
create-remote create a new repo in Github and add remote origin to the
local project.
list-repos view list of repositories belonging to the user.
pr list pull requests of current repository
view-profile view basic info of any particular user.
$ nlt add --help
Usage: nlt add [OPTIONS]
Add required files
Options:
--license Add license templates from the list to your project.
--gitignore Add gitignore template from the list to your Project.
--readme Addd README to your project.
$ nlt config --help
Usage: nlt config [OPTIONS]
Configure Users
Options:
--adduser Creates a personal access token in github and stores them locally.
--deluser Remove created personal access token from github and locally.
--showusers Show added users.
$ nlt create-remote --help
Usage: nlt create-remote [OPTIONS]
Options:
--username TEXT provide username in whose account the new repo is to be created.
--privy create a private repository if used.
$ nlt list-repos --help
Usage: nlt list-repos [OPTIONS]
view list of repositories belonging to the user, private repositories can
also be listed if user is configured.
Options:
--username TEXT provide username in whose repos are to be listed.
--all specify if private repos are needed,in that case username
must be configured.
--help Show this message and exit.
$ nlt pr --help
Usage: nlt pr [OPTIONS]
list open pull requests at remote of current git repository test them,
merge them or comment on the thread
Options:
--help Show this message and exit.
$ nlt view-profile --help
Usage: nlt view-profile [OPTIONS]
view basic profile information of a particular user
Options:
--username TEXT provide username in whose info is needed.
--all specify if private repos count is needed,in that case
username must be configured.
--help Show this message and exit.
- We're are open to
enhancements
&bug-fixes
😄. - Feel free to add issues and submit patches
Dibya Ranjan Jena - dibyasonu
See also the list of contributors who participated in this project.
This project is licensed under the MIT - see the LICENSE file for details