GithubHelp home page GithubHelp logo

aklin / kubectl-prettifier-script Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13 KB

A kubectl wrapper applying syntax highlighting to kubectl output.

License: MIT License

Shell 100.00%
kubectl syntax-highlighting prettier

kubectl-prettifier-script's Introduction

kubectl-prettifier-script

A kubectl wrapper applying syntax highlighting to kubectl output.

Installation

  1. Install highlight.
  2. Create a file named kubectl-prettify somewhere on your $PATH.
  3. Copy the script contents into the new file.
  4. Make the new file executable: chmod +x /usr/bin/kubectl-prettify.
  5. Verify correct installation with kubectl plugins list.
  6. (Optional) Alias: alias kubectl="kubectl prettify".

Supported Systems

System Support
Linux
OSX
Windows

kubectl-prettifier-script's People

Contributors

aklin avatar

Watchers

 avatar

kubectl-prettifier-script's Issues

As a user I want command output to be prettified for easier parsing.

User Story

Many command outputs is text-dense and not hard to skim quickly. As a user I want to prettify the output with syntax highlighting.

This is different from #1 because it focuses on command output, not highlighting of yaml or json output.

Candidate Commands

  • get nodes
  • version
  • describe

As a user, I want my logs to be saved automatically whenever I view them

User Story

When I run kubectl logs resource I want those log to be saved automatically, using a descriptive naming system.

Naming

Each output file name must be

  • Unique to cluster, namespace, and resource.
  • Timestamped.
    ** Possibly parse the --since parameter if present and adjust the timestamp accordingly.

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.