-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: adds extensive CLI documentation
The CLI has lacked extensive documentation for most part and that leaves its users confused about its usage. This commit attempts to solve that problem by adding some elaborate docstrings to the commands with examples such that the users can figure out things by reading it.
- Loading branch information
1 parent
48447d4
commit 5e1264d
Showing
61 changed files
with
847 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Contribution Guidelines | ||
## Setup your development environment | ||
|
||
The project uses [pipenv](https://pipenv.pypa.io/en/latest/) for | ||
development. It needs to be installed to setup the development environment. | ||
|
||
``` bash | ||
pip install pipenv | ||
``` | ||
|
||
Once Pipenv is installed, a Python virtual environment can be quickly | ||
bootstrapped by running the following commands in the root of the repository. | ||
|
||
``` bash | ||
pipenv install --dev | ||
``` | ||
|
||
This will create a virtual environment in the Pipenv's preconfigured location | ||
(if one doesn't already exists). It will also install all the dependencies and | ||
`riocli` package in the location. | ||
|
||
To run the CLI (or any command) under the context of Pipenv's virtual | ||
environment, prepend the commands with `pipenv run` | ||
|
||
```bash | ||
pipenv run rio | ||
``` | ||
|
||
To run the RIO CLI from the source directly, you can use `riocli` module | ||
directly. | ||
|
||
``` bash | ||
pipenv run python -m riocli | ||
``` | ||
|
||
New dependencies can be installed directly using `pipenv`. This modifies the | ||
`Pipfile` and `Pipfile.lock`. | ||
|
||
``` bash | ||
pipenv install {dependency} | ||
``` | ||
|
||
But using the `pipenv` directly doesn't sync the dependencies in the | ||
`setup.py` file. For this, the project uses a utility called `pipenv-setup` | ||
which allows us to sync the dependencies. | ||
|
||
``` bash | ||
pipenv run pipenv-setup sync | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.