Coder Social home page Coder Social logo

benmatselby / frost Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 223 KB

๐Ÿฅถ CLI application for getting certain kinds of data out of various build and work management tools and into the terminal, where we belong...

License: MIT License

Makefile 5.65% Go 91.67% Dockerfile 2.68%
jenkins vsts travis-ci build-automation golang azure-devops build-tools

frost's Introduction

Frost

Go Go Report Card

Inspector Jack Frost

CLI application for getting certain kinds of data out of various build and work management tools. It currently supports

CLI application for retrieving data from the ๐ŸŒ

Usage:
  frost [command]

Available Commands:
  ado         Azure DevOps related commands
  help        Help about any command
  jenkins     Jenkins related commands
  travis      TravisCI related commands
  version     Show the version information

Flags:
      --config string   config file (default is $HOME/.benmatselby/frost.yaml)
  -h, --help            help for frost

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

Requirements

If you are wanting to build and develop this, you will need the following items installed. If, however, you just want to run the application I recommend using the docker container (See below)

  • Go version 1.14+

Configuration

You will need the following environment variables defining depending on which services you want to use:

export AZURE_DEVOPS_ACCOUNT=""
export AZURE_DEVOPS_PROJECT=""
export AZURE_DEVOPS_TOKEN=""

export TRAVIS_CI_OWNER=""
export TRAVIS_CI_TOKEN=""

export JENKINS_URL=""
export JENKINS_USERNAME=""
export JENKINS_PASSWORD=""
# This is only required, if you want to get an overview of Jenkins from a defined "view".
# If this is not specified, it gets all jobs
export JENKINS_VIEW=""

You can also define ~/.benmatselby/frost.yml which has various settings.

Installation via Git

git clone [email protected]:benmatselby/frost.git
cd frost
make all
./frost --help

Installation via Docker

Other than requiring docker to be installed, there are no other requirements to run the application this way

$ docker build -t benmatselby/frost .
$ docker run \
    --rm \
    -t \
    -eAZURE_DEVOPS_ACCOUNT \
    -eAZURE_DEVOPS_PROJECT \
    -eAZURE_DEVOPS_TOKEN \
    -eTRAVIS_CI_OWNER \
    -eTRAVIS_CI_TOKEN \
    -eJENKINS_URL \
    -eJENKINS_USERNAME \
    -eJENKINS_PASSWORD \
    benmatselby/frost "$@"

Bash completion

If you would like bash completion support, then run:

frost completion

This will generate a bash completion script in /tmp/frost.sh. You simply need to move this into your bash_completion.d folder. On the Mac, this is likely to be /usr/local/etc/bash_completion.d/.

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.