Giter Site home page Giter Site logo

mcveloper's Introduction

mcveloper

CLI to reduce the amount of kubectl exec and docker logs I have to do

Installation

npm install -g https://github.com/jamesemwallis/mcveloper  

or

https://github.com/jamesemwallis/mcveloper.git && \
cd mcveloper && \
npm install -g

Problem

Currently working on a project day-to-day which requires typing the same kubectl and docker commands with minimal variation.

Having to type the whole command over and over again is tedious and so is finding it in my bash history.

Fix

This CLI takes the commands I need and in some places shortens what I need to type but in others, such as open, will stop me having to load a webpage and work out how to get the ip and port of a Kubernetes service.

Features

  • m help - Show the help.
  • m exec - docker exec -it and kubectl exec -it, takes the container name and defaults the command to /bin/bash.
  • m images - docker images, shows only microclimate related Docker images. No kubectl version.
  • m logs - docker logs -f and kubectl logs -f, prints and follows the log of a given container.
  • m ps - docker ps and kubectl get pods, prints the current running Microclimate processes. Docker can take a -a (all) option.
  • m run - Run a developer run script, user has to set this.
  • m stop - Run a developer stop script, user has to set this.
  • m open - Open mc in the browser, simple in Docker, clever in Kubernetes.
  • m open-webpage - Open the mc landing page.
  • m get-context - Get the current context for mcveloper (Docker or K8).
  • m set-context - Set a new context for mcveloper (Docker or K8).
  • m get-run - Get the run command for the current context.
  • m set-run-command - Set a new run command for the current context.
  • m set-run-location - Set a new run location for the current context.
  • m get-stop - Get the stop command for the current context.
  • m set-stop-command - Set a new stop command for the current context.
  • m set-stop-location - Set a new stop location for the current context.

mcveloper's People

Watchers

 avatar

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.