← Projects

yogo

04/2024 - 05/2024

Tech Stack:

https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/nodejs/nodejs-original.svg
https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/typescript/typescript-original.svg
GitHub:   algebra2boy/Yogo

Description: A command line tool to provide shortcut


Yogo is a simple command line tool written in Node.js that provides shortcut to many platforms.

Installation

To install Yogo, make sure you have Node.js installed on your machine. Then, you can install Yogo globally using npm:

git clone https://github.com/algebra2boy/Yogo
cd Yogo
npm run build
npm link 

Command line

  1. yo -v or yo --version: outputs the current version
  2. yo -h or yo --help: lists all the command and flags
  3. yo open <site>
    • Allows you to open your desired website without visiting a browser.
    • Currently supports three operating system: macOS, Windows, and Linux.
    • You can add any website shortcut and its url in src/commands/openSite/websiteURL.ts.
# Examples
yo open canvas
yo open notion
yo open gpt
  1. To check your GitHub contributions, use the following command:
yo contribution [options]

Options:

  • -a, --all: Get total contributions on GitHub calendar.
  • -n, --name <name>: Specify your GitHub username.
  • --today: Get today's contributions.
  • --week: Get this week's contributions.
  • --month: Get this month's contributions (excluding the current week).
  • -c, --count <count>: Get the number of contributions for the first/last n week(s) on the calendar.
  • -f, --filter <filter>: Filter by the number of contributions on the calendar.
Examples:
# To get the total contributions for a user:
yo contribution --name <github username> -a

# To get today contributions for a user:
yo contribution --name <github username> --today

# To get contributions for current week:
yo contribution --name <github username> --week 

# To get contributions for last four weeks/one month:
yo contribution --name <github username> --month 

# To get contributions for a specific number of weeks:
yo contribution --name <github username> -c 3
yo contribution --name <github username> --count -2

# To filter contribution
yo contribution --name <github username> -f 20
  1. To generate an image using OpenAI Dall-E3:
  • Images will be stored in the images folder.
  • Ora is used for the spinning wheel, and inquirer is used for I/O.
  • You will be asked to give a prompt, size of image, quality of an image.
  • You will also have an option to save the image locally or not.
yo image

Important Link

Permission Denied

It is possible that you need to manually grant write access to exectute the file.

cd /home/codespace/nvm/current/bin/
chmod +x yo