Giter Site home page Giter Site logo

kctl's Introduction

kctl

Build Status

A CLI wrapper for making kubernetes commands much easier

Usage

$ kctl --help
USAGE:
    kctl [OPTIONS] <command> [ARGS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -n, --namespace <namespace>    Specify the namespace to work on [default: default]

ARGS:
    <command>    Input command you want to run! [possible values: pod, svc, deploy, log, exec, forward, set-
                 namespace]
    <app>        Get specific app pods
    <port>       Get port number for port forwarding

Demo

demo

Usage Docs

Installation

Homebrew

brew tap alaminopu/kctl https://github.com/alaminopu/kctl.git  
brew install kctl

Manual

Before building the tool, install rust and cargo

On Linux and macOS systems, this is done as follows:

curl https://sh.rustup.rs -sSf | sh

Then run

cargo build --release 

You will find the binary in /target folder

Update permission

chmod a+x kctl

Move the binary to /usr/local/bin to make it executable from any terminal window

mov kctl /usr/local/bin

Contributing

  • Fork the repo
  • Create an issue in the issue section
  • Write code and commit changes
  • Send an PR to the master branch

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

kctl's People

Contributors

alaminopu avatar anikhasibul avatar dnivra26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

dnivra26

kctl's Issues

Handle exit codes properly

Failed commands should have an non-zero exit code.
In our case
kctl gives an exit code of 1.
while
kctl log gives an exit code of 0. (command fails because app name is not specified)

Support setting namespace on the fly

Currently, the namespace is defined as hard coded .

Planning to set the namespace with a command

kctl set-namespace -n <namespace>

Example:

kctl set-namespace -n food

Save namespace value in the config ~/.kctlconf

Read the namespace value from config ~/.kctlconf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.