diff --git a/.generated/wyxcli-output-preview.png b/.generated/wyxcli-output-preview.png index 3c2f6dd..759ed5e 100644 Binary files a/.generated/wyxcli-output-preview.png and b/.generated/wyxcli-output-preview.png differ diff --git a/.github/README.md b/.github/README.md index 476f44f..7835eb0 100644 --- a/.github/README.md +++ b/.github/README.md @@ -112,26 +112,26 @@ wyx list-deps ## List of Commands -### VERSION: +### VERSION đŸ“Ļ - `version`: WYX-CLI Version -### SYSTEM: -- `sys-info`: Get Detailed System Information - -### DEPENDENCIES: +### DEPENDENCIES đŸ“Ļ - `install-deps`: Install WYX-CLI dependencies - `update-deps`: Update the project dependencies - `list-deps`: List the project dependencies -### DIRECTORY NAVIGATION: +### SYSTEM đŸ–Ĩī¸ +- `sys-info`: Get Detailed System Information + +### DIRECTORY NAVIGATION 📍 - `cd `: Navigate Directory Aliases - `back`: Go Back A Directory -### CODE: +### CODE 💲 - `run `: Run Script Aliases - `vsc `: Open Directory Aliases in VSCode -### GIT AUTOMATION: +### GIT AUTOMATION 🐙 - `ginit`: Initialise Git Repository - `push`: Add-Commit-Push Git Changes to Current Branch - `pull`: Pull Git Changes for Current Branch @@ -143,7 +143,7 @@ wyx list-deps - `bpr `: Checkout-Add-Commit-Push New Git Branch & Open PR On GitHub/GitLab/BitBucket/Azure - `pp`: Pull-Push Git Changes to Current Branch -### URLs: +### URLs 🔗 - `repo`: View Your Repository On GitHub/GitLab/BitBucket/Azure - `branch`: View Your Current Branch On GitHub/GitLab/BitBucket/Azure - `pipelines`: View Your Pipelines On GitHub/GitLab/BitBucket/Azure @@ -153,56 +153,58 @@ wyx list-deps - `profile`: View Your GitHub Profile - `org `: View Your GitHub Organisation -### MY DATA: +### ENV/KEYSTORE 🗝ī¸ +- `keystore `: Add a key-value pair to your '.env' keystore +- `setup `: "Setup: ChatGPT commits, ChatGPT client, WYX-CLI auto-updates" + +### MY DATA 📂 - `user`: View Your User Configuration - `mydirs`: View Your Directory Aliases Configuration - `myorgs`: View Your GitHub Organisation Configuration - `myscripts`: View Your Scripts Configuration - `todo`: View Your To-Do List -### MANAGE MY DATA: +### MANAGE MY DATA 📂 - `editd `: Edit Your WYX-CLI Configuration - `edits `: Edit A Script File - `newscript `: Create A New Script -### ENV/KEYSTORE: -- `keystore `: Add a key-value pair to your '.env' keystore -- `setup `: Setup WYX-CLI Third Party API-based utilities - -### FILE UTILITIES: +### FILE UTILITIES 📁 - `find `: Regex Search Current Directory For File - `fopen `: Open current directory in your files application - `encrypt `: Encrypt a file using GPG - `decrypt `: Decrypt a GPG-encrypted file -### NETWORK UTILITIES: +### NETWORK UTILITIES 📡 - `ip`: View Your Local & Public IPs - `wifi`: View Available WiFi Networks - `hardware-ports`: View Your Hardware Ports - `wpass`: View Your Saved WiFi Passwords - `speedtest`: Run A Speed Test On Your Network -### IMAGE UTILITIES: -- `genqr `: Generate a QR code from a URL -- `upscale `: Scale up an image (uses no smoothing) +### WEB UTILITIES 🌐 +- `webtext `: Read-only websites in your terminal + +### AI UTILITIES 🤖 +- `ask-gpt`: Start a conversation with ChatGPT -### TEXT UTILITIES: +### TEXT UTILITIES 📝 - `genpass `: Generate A Random Password - `genhex `: Generate A Random Hex String - `genb64 `: Generate A Random Base64 String - `lastcmd`: Copy Your Last Command To Your Clipboard - `copy $()`: Copy output of a command to clipboard -### WEB UTILITIES: -- `webtext `: Read-only websites in your terminal +### IMAGE UTILITIES 📸 +- `genqr `: Generate a QR code from a URL +- `upscale `: Scale up an image (uses no smoothing) -### MISC UTILITIES: +### MISC UTILITIES 🛠ī¸ - `weather`: View the weather forecast for your location in the terminal - `moon`: View the moon phase - `leap-year`: Check when the next leap year is -### HELP UTILITIES: +### HELP UTILITIES ℹī¸ - `help`: View WYX-CLI Documentation - `explain `: Explain a bash command -- `ask-gpt`: Start a conversation with ChatGPT - `google `: Google a query diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index f414cee..58b2ac2 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,5 +1,5 @@ # Pull Request Checks -- [ ] An appropriate title prefix (`[BUG-FIX]`, `[NEW-FEATURE]`,`[REFINEMENT]`, `[METADATA]`) and title have been used. +- [ ] An appropriate title prefix (`[bugfix]`, `[feature]`,`[refactor]`, `[chore]`) and title have been used. - [ ] Documentation has been updated on the README and `wyx` command output where necessary. # What changes have been made diff --git a/src/classes/lib/lib.class b/src/classes/lib/lib.class index aee3a1a..2bd0390 100644 --- a/src/classes/lib/lib.class +++ b/src/classes/lib/lib.class @@ -37,9 +37,9 @@ lib.csv.all(){ fi cat=$(lib.csv.query.one 'arg_categories' 'name' "where id='$category'") if [ "$type" = "git" ]; then - echo "### ${cat}:" + echo "### ${cat}" else - sys.log.h1 "${cat}:" + sys.log.h1 "${cat}" fi for script in "${scripts[@]:1}"; do if [ "$script" = "" ]; then diff --git a/src/commands/setup.sh b/src/commands/setup.sh index 35b8960..ccbb66c 100644 --- a/src/commands/setup.sh +++ b/src/commands/setup.sh @@ -12,6 +12,12 @@ elif [ "$1" = "smart_commit" ]; then wyxd.check_keystore "OPENAI_API_KEY" wyxd.check_keystore "USE_SMART_COMMIT" "true" sys.log.info "You're done!" + +elif [ "$1" = "auto_update" ]; then + sys.log.info "Setting up auto update..." + echo "" + wyxd.check_keystore "AUTO_UPDATE" "true" + sys.log.info "You're done!" else sys.log.error "Invalid setup command! Try again" diff --git a/src/data/.cache/cmdinfo.git.wyx b/src/data/.cache/cmdinfo.git.wyx index 7ce0d70..dcd036a 100644 --- a/src/data/.cache/cmdinfo.git.wyx +++ b/src/data/.cache/cmdinfo.git.wyx @@ -1,23 +1,23 @@ -### VERSION: +### VERSION đŸ“Ļ - `version`: WYX-CLI Version -### SYSTEM: -- `sys-info`: Get Detailed System Information - -### DEPENDENCIES: +### DEPENDENCIES đŸ“Ļ - `install-deps`: Install WYX-CLI dependencies - `update-deps`: Update the project dependencies - `list-deps`: List the project dependencies -### DIRECTORY NAVIGATION: +### SYSTEM đŸ–Ĩī¸ +- `sys-info`: Get Detailed System Information + +### DIRECTORY NAVIGATION 📍 - `cd `: Navigate Directory Aliases - `back`: Go Back A Directory -### CODE: +### CODE 💲 - `run `: Run Script Aliases - `vsc `: Open Directory Aliases in VSCode -### GIT AUTOMATION: +### GIT AUTOMATION 🐙 - `ginit`: Initialise Git Repository - `push`: Add-Commit-Push Git Changes to Current Branch - `pull`: Pull Git Changes for Current Branch @@ -29,7 +29,7 @@ - `bpr `: Checkout-Add-Commit-Push New Git Branch & Open PR On GitHub/GitLab/BitBucket/Azure - `pp`: Pull-Push Git Changes to Current Branch -### URLs: +### URLs 🔗 - `repo`: View Your Repository On GitHub/GitLab/BitBucket/Azure - `branch`: View Your Current Branch On GitHub/GitLab/BitBucket/Azure - `pipelines`: View Your Pipelines On GitHub/GitLab/BitBucket/Azure @@ -39,57 +39,59 @@ - `profile`: View Your GitHub Profile - `org `: View Your GitHub Organisation -### MY DATA: +### ENV/KEYSTORE 🗝ī¸ +- `keystore `: Add a key-value pair to your '.env' keystore +- `setup `: "Setup: ChatGPT commits, ChatGPT client, WYX-CLI auto-updates" + +### MY DATA 📂 - `user`: View Your User Configuration - `mydirs`: View Your Directory Aliases Configuration - `myorgs`: View Your GitHub Organisation Configuration - `myscripts`: View Your Scripts Configuration - `todo`: View Your To-Do List -### MANAGE MY DATA: +### MANAGE MY DATA 📂 - `editd `: Edit Your WYX-CLI Configuration - `edits `: Edit A Script File - `newscript `: Create A New Script -### ENV/KEYSTORE: -- `keystore `: Add a key-value pair to your '.env' keystore -- `setup `: Setup WYX-CLI Third Party API-based utilities - -### FILE UTILITIES: +### FILE UTILITIES 📁 - `find `: Regex Search Current Directory For File - `fopen `: Open current directory in your files application - `encrypt `: Encrypt a file using GPG - `decrypt `: Decrypt a GPG-encrypted file -### NETWORK UTILITIES: +### NETWORK UTILITIES 📡 - `ip`: View Your Local & Public IPs - `wifi`: View Available WiFi Networks - `hardware-ports`: View Your Hardware Ports - `wpass`: View Your Saved WiFi Passwords - `speedtest`: Run A Speed Test On Your Network -### IMAGE UTILITIES: -- `genqr `: Generate a QR code from a URL -- `upscale `: Scale up an image (uses no smoothing) +### WEB UTILITIES 🌐 +- `webtext `: Read-only websites in your terminal + +### AI UTILITIES 🤖 +- `ask-gpt`: Start a conversation with ChatGPT -### TEXT UTILITIES: +### TEXT UTILITIES 📝 - `genpass `: Generate A Random Password - `genhex `: Generate A Random Hex String - `genb64 `: Generate A Random Base64 String - `lastcmd`: Copy Your Last Command To Your Clipboard - `copy $()`: Copy output of a command to clipboard -### WEB UTILITIES: -- `webtext `: Read-only websites in your terminal +### IMAGE UTILITIES 📸 +- `genqr `: Generate a QR code from a URL +- `upscale `: Scale up an image (uses no smoothing) -### MISC UTILITIES: +### MISC UTILITIES 🛠ī¸ - `weather`: View the weather forecast for your location in the terminal - `moon`: View the moon phase - `leap-year`: Check when the next leap year is -### HELP UTILITIES: +### HELP UTILITIES ℹī¸ - `help`: View WYX-CLI Documentation - `explain `: Explain a bash command -- `ask-gpt`: Start a conversation with ChatGPT - `google `: Google a query diff --git a/src/data/.cache/cmdinfo.term.wyx b/src/data/.cache/cmdinfo.term.wyx index 3089bfb..66c9f3f 100644 --- a/src/data/.cache/cmdinfo.term.wyx +++ b/src/data/.cache/cmdinfo.term.wyx @@ -1,23 +1,23 @@ -VERSION: +VERSION đŸ“Ļ - version: WYX-CLI Version -SYSTEM: -- sys-info: Get Detailed System Information - -DEPENDENCIES: +DEPENDENCIES đŸ“Ļ - install-deps: Install WYX-CLI dependencies - update-deps: Update the project dependencies - list-deps: List the project dependencies -DIRECTORY NAVIGATION: +SYSTEM đŸ–Ĩī¸ +- sys-info: Get Detailed System Information + +DIRECTORY NAVIGATION 📍 - cd : Navigate Directory Aliases - back: Go Back A Directory -CODE: +CODE 💲 - run : Run Script Aliases - vsc : Open Directory Aliases in VSCode -GIT AUTOMATION: +GIT AUTOMATION 🐙 - ginit: Initialise Git Repository - push: Add-Commit-Push Git Changes to Current Branch - pull: Pull Git Changes for Current Branch @@ -29,7 +29,7 @@ - bpr : Checkout-Add-Commit-Push New Git Branch & Open PR On GitHub/GitLab/BitBucket/Azure - pp: Pull-Push Git Changes to Current Branch -URLs: +URLs 🔗 - repo: View Your Repository On GitHub/GitLab/BitBucket/Azure - branch: View Your Current Branch On GitHub/GitLab/BitBucket/Azure - pipelines: View Your Pipelines On GitHub/GitLab/BitBucket/Azure @@ -39,57 +39,59 @@ - profile: View Your GitHub Profile - org : View Your GitHub Organisation -MY DATA: +ENV/KEYSTORE 🗝ī¸ +- keystore : Add a key-value pair to your '.env' keystore +- setup : "Setup: ChatGPT commits, ChatGPT client, WYX-CLI auto-updates" + +MY DATA 📂 - user: View Your User Configuration - mydirs: View Your Directory Aliases Configuration - myorgs: View Your GitHub Organisation Configuration - myscripts: View Your Scripts Configuration - todo: View Your To-Do List -MANAGE MY DATA: +MANAGE MY DATA 📂 - editd : Edit Your WYX-CLI Configuration - edits : Edit A Script File - newscript : Create A New Script -ENV/KEYSTORE: -- keystore : Add a key-value pair to your '.env' keystore -- setup : Setup WYX-CLI Third Party API-based utilities - -FILE UTILITIES: +FILE UTILITIES 📁 - find : Regex Search Current Directory For File - fopen : Open current directory in your files application - encrypt : Encrypt a file using GPG - decrypt : Decrypt a GPG-encrypted file -NETWORK UTILITIES: +NETWORK UTILITIES 📡 - ip: View Your Local & Public IPs - wifi: View Available WiFi Networks - hardware-ports: View Your Hardware Ports - wpass: View Your Saved WiFi Passwords - speedtest: Run A Speed Test On Your Network -IMAGE UTILITIES: -- genqr : Generate a QR code from a URL -- upscale : Scale up an image (uses no smoothing) +WEB UTILITIES 🌐 +- webtext : Read-only websites in your terminal + +AI UTILITIES 🤖 +- ask-gpt: Start a conversation with ChatGPT -TEXT UTILITIES: +TEXT UTILITIES 📝 - genpass : Generate A Random Password - genhex : Generate A Random Hex String - genb64 : Generate A Random Base64 String - lastcmd: Copy Your Last Command To Your Clipboard - copy $(): Copy output of a command to clipboard -WEB UTILITIES: -- webtext : Read-only websites in your terminal +IMAGE UTILITIES 📸 +- genqr : Generate a QR code from a URL +- upscale : Scale up an image (uses no smoothing) -MISC UTILITIES: +MISC UTILITIES 🛠ī¸ - weather: View the weather forecast for your location in the terminal - moon: View the moon phase - leap-year: Check when the next leap year is -HELP UTILITIES: +HELP UTILITIES ℹī¸ - help: View WYX-CLI Documentation - explain : Explain a bash command -- ask-gpt: Start a conversation with ChatGPT - google : Google a query diff --git a/src/data/arg_categories.csv b/src/data/arg_categories.csv index edf25e4..b3d16a3 100644 --- a/src/data/arg_categories.csv +++ b/src/data/arg_categories.csv @@ -1,18 +1,19 @@ id,name -version,VERSION -sys,SYSTEM -deps,DEPENDENCIES -nav,DIRECTORY NAVIGATION -code,CODE -git,GIT AUTOMATION -urls,URLs -mydata,MY DATA -mmdata,MANAGE MY DATA -env,ENV/KEYSTORE -futil,FILE UTILITIES -nutil,NETWORK UTILITIES -iutil,IMAGE UTILITIES -tutil,TEXT UTILITIES -wutil,WEB UTILITIES -mutil,MISC UTILITIES -hutil,HELP UTILITIES \ No newline at end of file +version,VERSION đŸ“Ļ +deps,DEPENDENCIES đŸ“Ļ +sys,SYSTEM đŸ–Ĩī¸ +nav,DIRECTORY NAVIGATION 📍 +code,CODE 💲 +git,GIT AUTOMATION 🐙 +urls,URLs 🔗 +env,ENV/KEYSTORE 🗝ī¸ +mydata,MY DATA 📂 +mmdata,MANAGE MY DATA 📂 +futil,FILE UTILITIES 📁 +nutil,NETWORK UTILITIES 📡 +wutil,WEB UTILITIES 🌐 +aiutil,AI UTILITIES 🤖 +tutil,TEXT UTILITIES 📝 +iutil,IMAGE UTILITIES 📸 +mutil,MISC UTILITIES 🛠ī¸ +hutil,HELP UTILITIES ℹī¸ \ No newline at end of file diff --git a/src/data/arg_scripts.csv b/src/data/arg_scripts.csv index b883457..24fcd92 100644 --- a/src/data/arg_scripts.csv +++ b/src/data/arg_scripts.csv @@ -53,11 +53,11 @@ moon,moon,"View the moon phase",true,,mutil leap-year,leap-year,"Check when the next leap year is",true,,mutil webtext,webtext,"Read-only websites in your terminal",true,,wutil explain,explain,"Explain a bash command",true,,hutil -ask-gpt,ask-gpt,"Start a conversation with ChatGPT",true,,hutil +ask-gpt,ask-gpt,"Start a conversation with ChatGPT",true,,aiutil google,google,"Google a query",true,,hutil install-deps,install-deps,"Install WYX-CLI dependencies",true,,deps keystore,keystore,"Add a key-value pair to your '.env' keystore",true, ,env -setup,setup,"Setup WYX-CLI Third Party API-based utilities",true,"",env +setup,setup,"Setup: ChatGPT commits, ChatGPT client, WYX-CLI auto-updates",true,"",env update-stdout,img_stdout,"Output wyx STDOUT to an image",false,, copy,copy,"Copy output of a command to clipboard",true,$(),tutil update-deps,update-deps,"Update the project dependencies",true,,deps