Verse
Tired of having to change ENV variable for each of your project?
Or to write long and hard to remember commands?
Verse help you to create project specific alias and environment modification thanks to a simple file
How does it work ?
- Create and edit a Versefile.
- Use the following instruction guide to customize your Versefile
- Type
verseand enter in a verse shell with your custom env and aliases!
Instructions
-
NAME (name)
Set a project name. Verse will then use this to customize your prompt.
NAME MoonApp -
ALIAS (name, command)
Create a custom alias for your project.
ALIAS dev react-native-run android --settings moonapp-settings-dev.json -
ENV
-
ADD (key, value)
Modify content of key in env to append value.
ENV ADD ANDROID_PATH ./android-sdk -
SET (key, value)
Modify content of key in env by value.
ENV SET VERSION 4
-
-
RUN (command)
This command will be run when executing
verse runRUN mongod --port 5542 & -
SETUP (command)
This command will be run when executing
verse setupSETUP npm i
There is also some customization commands
-
PRINT (message)
Print a message
PRINT MoonLanding project ! -
DESC (description)
Must be placed before
ALIAS
Add a description for an aliasDESC use to clean npm packages ALIAS rm -rf nodes-modules -
FORE (r, g, b)
Used to set the prompt foreground
FORE 255 255 255 -
BACK (r, g, b)
Used to set the prompt background
BACK 162 35 173
Verse CLI
verse {ROOTDIR, default=./verse}
Launch verse shell with a optional path to a dir containing a Versefile
[arg]is mandatory,{arg}is optional
verse [OPTIONS]
Options:
run {ROOTDIR}Execute all RUN commands of Versefilesetup {ROOTDIR}Execute all SETUP commands of Versefilelist {ROOTDIR}Display all commands in Versefileinfo {ROOTDIR}Display Versefile infohelpDisplay help
Example
NAME AndroidApp
FORE 255 60 255
BACK 255 255 255
ENV SET ANROID_PATH ../android_sdk
ENV SET LINTER_PATH ../bin/linter
ENV ADD PATH ../bin
ALIAS build npm build
ALIAS run npm run
DESC Check linter and push
ALIAS push linter && git push
SETUP npm i
SETUP curl localhost:6088/secret-key > secret-key.key
RUN mongod --port 55555 &
Important informations:
- All command and alias will be executed in a subshell, so ALIAS exit will not exit your shell.
- All path will be replaced by
VERSEFILE_FOLDER_FULL_PATH+path except these starting by/
TODO
- make
ENVdirectives also used byrunetsetupimplementverse create
Metadata
Release files for verse 1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| verse-1.7.tar.gz | 5.4 kB | Without provenance | Details for verse-1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| verse-1.7-py3-none-any.whl | Python 3 | none | any | Details for verse-1.7-py3-none-any.whl |
Total release size: 11.1 kB
Release files / verse-1.7.tar.gz
| Download URL | verse-1.7.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89156b329ecdeb952b9cb9f1914abe6a0f30736fa5dc6ea557eb2c10abb59012
|
|
BLAKE2b-256 checksum How to use checksums |
a410301f328b8e9ea2c2c1a8296896ff90935b5cb7aa7e04536afe8c67b63bda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Release files / verse-1.7-py3-none-any.whl
| Download URL | verse-1.7-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0577f8ad47491e499e28cdafce7627fb305e6303f49eccf47dedf568ba544baa
|
|
BLAKE2b-256 checksum How to use checksums |
869a851951035a5fc625e8c95f49073625c25a4aaa5e69ed2858befa91e6b287
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Security for verse 1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.