Skip to content

Commit

Permalink
GPT-commit: ℹ️ Modified functions/classes/variables for better UX dis…
Browse files Browse the repository at this point in the history
…play

ℹ️ Modified functions/classes/variables for better UX display:
  • Loading branch information
hwixley committed May 27, 2024
1 parent ceefb1b commit bc07652
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 93 deletions.
50 changes: 25 additions & 25 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <mydir?>`: Navigate Directory Aliases
- `back`: Go Back A Directory
### CODE:
### CODE 💲:
- `run <myscript>`: Run Script Aliases
- `vsc <mydir>`: 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
Expand All @@ -143,7 +143,7 @@ wyx list-deps
- `bpr <branch-name?>`: 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
Expand All @@ -153,55 +153,55 @@ wyx list-deps
- `profile`: View Your GitHub Profile
- `org <myorg?>`: View Your GitHub Organisation
### MY DATA:
### ENV/KEYSTORE 🗝️:
- `keystore <key?> <value?>`: Add a key-value pair to your '.env' keystore
- `setup <smart_commit|openai_key|auto_update>`: "Setup WYX-CLI API-based utilities including:\nGPT commits using OpenAI, and WYX-CLI auto-updates with git"
### 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 <user|myorgs|mydirs|myscripts|todo>`: Edit Your WYX-CLI Configuration
- `edits <myscript?>`: Edit A Script File
- `newscript <name?>`: Create A New Script
### ENV/KEYSTORE:
- `keystore <key?> <value?>`: Add a key-value pair to your '.env' keystore
- `setup <smart_commit>`: Setup WYX-CLI Third Party API-based utilities
### FILE UTILITIES:
### FILE UTILITIES 📁:
- `find <regex?>`: Regex Search Current Directory For File
- `fopen <dir|mydir?>`: Open current directory in your files application
- `encrypt <file|dir?>`: Encrypt a file using GPG
- `decrypt <file?>`: 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 <url?> <name?>`: Generate a QR code from a URL
- `upscale <file?> <scale-multiplier?>`: Scale up an image (uses no smoothing)
### WEB UTILITIES 🌐:
- `webtext <url?>`: Read-only websites in your terminal
### TEXT UTILITIES:
### TEXT UTILITIES 📝:
- `genpass <pass-length?>`: Generate A Random Password
- `genhex <length?>`: Generate A Random Hex String
- `genb64 <length?>`: Generate A Random Base64 String
- `lastcmd`: Copy Your Last Command To Your Clipboard
- `copy $(<command?>)`: Copy output of a command to clipboard
### WEB UTILITIES:
- `webtext <url?>`: Read-only websites in your terminal
### IMAGE UTILITIES 📸:
- `genqr <url?> <name?>`: Generate a QR code from a URL
- `upscale <file?> <scale-multiplier?>`: 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 <command?>`: Explain a bash command
- `ask-gpt`: Start a conversation with ChatGPT
Expand Down
6 changes: 6 additions & 0 deletions src/commands/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
50 changes: 25 additions & 25 deletions src/data/.cache/cmdinfo.git.wyx
Original file line number Diff line number Diff line change
@@ -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 <mydir?>`: Navigate Directory Aliases
- `back`: Go Back A Directory

### CODE:
### CODE 💲:
- `run <myscript>`: Run Script Aliases
- `vsc <mydir>`: 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
Expand All @@ -29,7 +29,7 @@
- `bpr <branch-name?>`: 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
Expand All @@ -39,55 +39,55 @@
- `profile`: View Your GitHub Profile
- `org <myorg?>`: View Your GitHub Organisation

### MY DATA:
### ENV/KEYSTORE 🗝️:
- `keystore <key?> <value?>`: Add a key-value pair to your '.env' keystore
- `setup <smart_commit|openai_key|auto_update>`: "Setup WYX-CLI API-based utilities including:\nGPT commits using OpenAI, and WYX-CLI auto-updates with git"

### 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 <user|myorgs|mydirs|myscripts|todo>`: Edit Your WYX-CLI Configuration
- `edits <myscript?>`: Edit A Script File
- `newscript <name?>`: Create A New Script

### ENV/KEYSTORE:
- `keystore <key?> <value?>`: Add a key-value pair to your '.env' keystore
- `setup <smart_commit>`: Setup WYX-CLI Third Party API-based utilities

### FILE UTILITIES:
### FILE UTILITIES 📁:
- `find <regex?>`: Regex Search Current Directory For File
- `fopen <dir|mydir?>`: Open current directory in your files application
- `encrypt <file|dir?>`: Encrypt a file using GPG
- `decrypt <file?>`: 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 <url?> <name?>`: Generate a QR code from a URL
- `upscale <file?> <scale-multiplier?>`: Scale up an image (uses no smoothing)
### WEB UTILITIES 🌐:
- `webtext <url?>`: Read-only websites in your terminal

### TEXT UTILITIES:
### TEXT UTILITIES 📝:
- `genpass <pass-length?>`: Generate A Random Password
- `genhex <length?>`: Generate A Random Hex String
- `genb64 <length?>`: Generate A Random Base64 String
- `lastcmd`: Copy Your Last Command To Your Clipboard
- `copy $(<command?>)`: Copy output of a command to clipboard

### WEB UTILITIES:
- `webtext <url?>`: Read-only websites in your terminal
### IMAGE UTILITIES 📸:
- `genqr <url?> <name?>`: Generate a QR code from a URL
- `upscale <file?> <scale-multiplier?>`: 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 <command?>`: Explain a bash command
- `ask-gpt`: Start a conversation with ChatGPT
Expand Down
50 changes: 25 additions & 25 deletions src/data/.cache/cmdinfo.term.wyx
Original file line number Diff line number Diff line change
@@ -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 <mydir?>: Navigate Directory Aliases
- back: Go Back A Directory

CODE:
CODE 💲:
- run <myscript>: Run Script Aliases
- vsc <mydir>: 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
Expand All @@ -29,7 +29,7 @@
- bpr <branch-name?>: 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
Expand All @@ -39,55 +39,55 @@
- profile: View Your GitHub Profile
- org <myorg?>: View Your GitHub Organisation

MY DATA:
ENV/KEYSTORE 🗝️:
- keystore <key?> <value?>: Add a key-value pair to your '.env' keystore
- setup <smart_commit|openai_key|auto_update>: "Setup WYX-CLI API-based utilities including:\nGPT commits using OpenAI, and WYX-CLI auto-updates with git"

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 <user|myorgs|mydirs|myscripts|todo>: Edit Your WYX-CLI Configuration
- edits <myscript?>: Edit A Script File
- newscript <name?>: Create A New Script

ENV/KEYSTORE:
- keystore <key?> <value?>: Add a key-value pair to your '.env' keystore
- setup <smart_commit>: Setup WYX-CLI Third Party API-based utilities

FILE UTILITIES:
FILE UTILITIES 📁:
- find <regex?>: Regex Search Current Directory For File
- fopen <dir|mydir?>: Open current directory in your files application
- encrypt <file|dir?>: Encrypt a file using GPG
- decrypt <file?>: 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 <url?> <name?>: Generate a QR code from a URL
- upscale <file?> <scale-multiplier?>: Scale up an image (uses no smoothing)
WEB UTILITIES 🌐:
- webtext <url?>: Read-only websites in your terminal

TEXT UTILITIES:
TEXT UTILITIES 📝:
- genpass <pass-length?>: Generate A Random Password
- genhex <length?>: Generate A Random Hex String
- genb64 <length?>: Generate A Random Base64 String
- lastcmd: Copy Your Last Command To Your Clipboard
- copy $(<command?>): Copy output of a command to clipboard

WEB UTILITIES:
- webtext <url?>: Read-only websites in your terminal
IMAGE UTILITIES 📸:
- genqr <url?> <name?>: Generate a QR code from a URL
- upscale <file?> <scale-multiplier?>: 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 <command?>: Explain a bash command
- ask-gpt: Start a conversation with ChatGPT
Expand Down
34 changes: 17 additions & 17 deletions src/data/arg_categories.csv
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
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
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 🌐
tutil,TEXT UTILITIES 📝
iutil,IMAGE UTILITIES 📸
mutil,MISC UTILITIES 🛠️
hutil,HELP UTILITIES ℹ️
Loading

0 comments on commit bc07652

Please sign in to comment.