WYX-CLI

⚡️ WYX CLI ⚡️

Optimize your development productivity in the terminal


CODEQL Deploy Jekyll GH-Pages Generate Stdout Image
License Version
Shell Support Operating Systems Git Support



Table of Contents


What It Does

Provides developers with the ability for optimising the execution of commonly performed tasks, commands, directory navigations, and environment setups/script executions.

Why It Was Made

I found myself executing the same commands repeatedly, finding navigation on the terminal for frequently accessed locations needlessly slow, and the task of pushing out new code via manually submitting a PR on my browser repetitive and time-wasting. I decided to start developing my own bash scripting library to help alleviate these issues, and realized the whole world of opportunity I had to help optimize my own daily workflows on the terminal. Due to my experience working simultaneously on Mac and Linux machines one of the key parts of the WYX-CLI project was to also allow the same code to run in different shells and operating systems.


Support This Project

If you have found this tool useful/insightful please leave a :star: on the repository it really helps me out!

I also have a buymeacoffee sponsor link if you would like to help turn my caffeine addiction into a problem :coffee::zap:


Installation

  1. Clone this repository into a folder of your choice:
git clone git@github.com:hwixley/WYX-CLI.git
  1. Navigate into the directory:
cd WYX-CLI
  1. Give permissions to the setup script and run it:
chmod +x setup.sh && ./setup.sh
  1. Reopen your terminal or run source ~/.bashrc (source ~/.zshrc for ZSH shells)

Type wyx to see the list of commands and start developing some magic!

Extra Feature Setup

  1. GPT Smart Commit - a feature that uses OpenAI’s ChatGPT to write informative commit messages for you (using your git diff and git status outputs) when using the wyx push command (or other wyx commands which use push, ie. wyx nb, wyx bpr etc.). This requires an OpenAI API key.
    wyx setup smart_commit
    
  2. Terminal GPT client - a feature that allows you to talk to OpenAI’s ChatGPT directly in the terminal using the wyx ask-gpt command. This requires an OpenAI API key.
    wyx setup openai_key
    
  3. WYX-CLI Auto Update - a feature that allows you to toggle auto-updates on your WYX-CLI installation. When turned on this will perform a git pull to the upstream repository whenever you call wyx with no arguments (to prevent slowing down regular command usage).
    wyx setup auto_update
    

Factory-reset Installation

  1. Remove your cloned repository
rm -rf <path-of-installation>
  1. Remove the wyx-cli script setup in your environment file
    • Open the file in an editor: (~/.bashrc or ~/.zshrc depending on your shell)
      gedit ~/.bashrc
      

      If gedit is not available you can always use vim instead:

      vi ~/.bashrc
      
    • Remove the 2 lines for the wyx-cli:
      • The first line is a comment: # WYX-CLI
      • The second line is where the command is actually setup: alias wyx="<path-of-installation>/wyx-cli.sh"
  2. Follow the installation instructions

Dependencies

View current dependencies for your WYX-CLI configuration by running:

wyx list-deps

List of Commands

VERSION 📦

DEPENDENCIES 📦

SYSTEM 🖥️

DIRECTORY NAVIGATION 📍

CODE 💲

GIT AUTOMATION 🐙

URLs 🔗

ENV/KEYSTORE 🗝️

MY DATA 📂

MANAGE MY DATA 📂

FILE UTILITIES 📁

NETWORK UTILITIES 📡

WEB UTILITIES 🌐

AI UTILITIES 🤖

TEXT UTILITIES 📝

IMAGE UTILITIES 📸

MISC UTILITIES 🛠️

HELP UTILITIES ℹ️