Skip to content

y-hatano-github/cubectl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cubectl demo: a rotating 3D cube in the terminal

🧊 cubectl

Release Go Version License

Once you mistype kubectl as cubectl, you’ll end up controlling a cube instead of Kubernetes clusters.
This tool makes your typos fun.

⚙️ Features

  • 🧊 Renders a 3D cube instead of controlling Kubernetes clusters.
  • 🔄 Rotate the cube with arrow keys or wasd.
  • 🔍 Zoom in/out with z and x.
  • 🚫 Absolutely no Kubernetes functionality included.

💾 Download

Pre-built binaries are available for Windows, macOS, and Linux.

👉 Get the latest release here: https://github.com/y-hatano-github/cubectl/releases/latest

🚀 Quick start

🐧 Linux

wget https://github.com/y-hatano-github/cubectl/releases/latest/download/cubectl_linux_amd64.tar.gz
tar -xzvf cubectl_linux_amd64.tar.gz
sudo mv cubectl /usr/local/bin/
cubectl

🍎 macOS

curl -LO https://github.com/y-hatano-github/cubectl/releases/latest/download/cubectl_darwin_amd64.tar.gz
tar -xzvf cubectl_darwin_amd64.tar.gz
sudo mv cubectl /usr/local/bin/
cubectl

🪟 Windows

Invoke-WebRequest -OutFile cubectl_windows_amd64.tar.gz https://github.com/y-hatano-github/cubectl/releases/latest/download/cubectl_windows_amd64.tar.gz
tar -xzvf cubectl_windows_amd64.tar.gz
.\cubectl.exe

📘 Usage

cubectl controls cube instead of Kubernetes clusters.

Find more information at:
  https://github.com/y-hatano-github/cubectl

Controls:
  Arrow keys or wasd: Rotate the cube
  z: Zoom in
  x: Zoom out
  Ctrl+C or Esc: Exit

Usage:
  cubectl [flags]
  cubectl [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  describe    Describe resources
  get         Get cube
  help        Help about any command
  logs        Print the logs for a cubectl

Flags:
  -h, --help   help for cubectl

Use "cubectl [command] --help" for more information about a command.

📚 References

Inspiration for the idea

I was reading the following articles, and somehow ended up creating this joke command.

For 3D rendering