a terminal program that you can add in your PATH which runs commands specified in a file in the same or any parent directory.
prayer refers to a
.prayerfile
- install the program
- create a prayer in your project's root directory
- if you do not want to see any debug logs from this program, the top line of your prayer should be "nolog".
- every command is specified as
command-name: commandin subsequent lines. - command names must not contain spaces and it is recommended to not use special characters other than underscores or dashes.
- the default command that runs when no command name is specific is named
default. - commands can be executed by running the following command in the terminal with the working directory which itself contains the prayer or is a subfolder of a folder that contains the prayer.
pray <command-name> arg1 arg2 ...
- command-name is optional and set to "default" by default.
- arg1, arg2.... are optional too, and are simply appended to the command specified by the command name.
- command-name can be set to "default" to specify args for the default command.
#is used to specify a comment in the prayer
- running the command
prayin the directory where this prayer is saved or any subfolder of the same would result in the execution ofpython script.pywhereas running the commandpray script2would result in the execution ofpython script2.py.
# python script prayer
default: python script.py
script2: python script2.py
# python project prayer
nolog
default: python __main__.py
# mkdir renaming prayer
default: mkdir
Prebuilt binaries are available for windows only.
the exe file may be incorrectly flagged as malware as it is not commonly downloaded or code-signed as it requires a lot of money.
incase of any doubts, users can check any file in this repository and build the source themselves just like how non-windows users have to.
- download the executable file from the latest release
- create a folder at a location of your choice
- move the downloaded executable file to that new folder
- ensure that the executable file's name is
pray.exeso thatprayis recognized as a command name in the terminal - add the new folder's location to your PATH
- restart your terminal and run
prayto check whether the installation was successful or not. if it was, you will most likely see an error stating "prayer_not_found". if it was not, you will see something like "pray is not a valid command name" and you most likely messed up the folder paths / adding it to your PATH. recheck or restart the whole process again if required. - done! now go back to usage.
pip install pyinstaller
- clone this repository, move it anywhere if required, open your favourite terminal and cd into the repository's root folder i.e the one that contains README.md, LICENSE etc.
- run the following command to generate the executable for your OS
pyinstaller -F src/main.py
- the executable will be generated inside a dist folder that is automatically created by running the previous command
- rename the executable file's filename to
prayso thatprayis recognized as a command name in the terminal - add the location of the dist folder in your PATH
- restart your terminal and run
prayto check whether the installation was successful or not. If it was, you will most likely see an error stating "prayer_not_found". If it was not, you most likely messed up folder paths. recheck or restart if required. - done! now go back to usage.
- the src/main.py file is all there is for now.
- pull requests are welcome.