One Line Run(onelr) is a command line utility, based in the shell scripting Language | First proposed by ugoMusk
It's a simple approach to avoid running multiple commands to accomplish a single task like sending updates to github, etcetera, right within the terminal. Onelr gives you command automation super powers, smile! Give us a star if you like it.
Fork the repository and clone locally with the command:
git clone https://github.com/ugoMusk/Onelr.git
run the folowing commands:
./onelr
exit
and then restart your terminal.
Boom! you are set to explore.
./onelr_app
exit
and then restart your terminal.
Boom! There you go.
Onelr enables you to automate the process of cloning your repositories and never needing to type your PAT every single time. See usage chart below for command description
## Command usage | ## Description |
---|---|
g "filename_here" "commit_message" | Adds, commits and pushes your specified updates to github. "filename_here" could be the character "."(a period), to target all changes locally) |
gexec "filename_here" "commit_message" | Adds, commits and pushes your specified updates to github. And makes file executeable. "filename_here" must be a file, |
gcompile "filename_here" "filename2_here" "commit_message" | Adds, commits and pushes your specified updates to github. And compiles file with all standard gcc flags. "filename_here" must be a file with a .c extension (C source file), and "filename2_here" any name you would want to save your compiled result in or vice versa. will default to "a.out" in case not specified. |
gconfig "your_git_email" "your_git_username "your_PAT_ending_with_an_@" | Collects and stores your git credentials in your environment. The order in the command must be strictly followed |
gclone "https://"$PAT"github.com/your_git_username/repository_name.git" | Clones your repository, sets your PAT automatically, initializes git and configures your username and email with git. the url must be identical to the example url. You should copy the repo url and add the variable "$PAT" exactly like the example url. You must have run the gconfig command above to have access to all variables used by Onelr. |
gcollab "file_name(s)" "commit message" | Automatically resolves merge conflicts that may arise from updating a file(s) in a team Project. |
This section describes the capability Onelr offers, to help you search through and filter your history. If you have ever been in a situation were you need to run a previous command that has credentials you don't have off hand. if you can remember a single term in the command, then you can get printed to your screen!
search_history
After copying and running the above command, you would be prompted in the next line to enter a query term. Enter a search term that would be used to filter through the file containing your cmd history and press enter. enjoy!