Giter VIP home page Giter VIP logo

circlog's Introduction

circlog

A cli tool for retreiving CircleCI logs.

In order to retreive the logs for a single CircleCI step, 5 API requests are necessary:

  • Get pipelines for project - circlog pipelines <project>
  • Get workflows for pipeline - circlog workflows <project> -l <pipeline-id>
  • Get jobs for workflow - circlog jobs <project> -w <workflow-id>
  • Get steps for job - circlog steps <project> -j <job-number>
  • Get logs for step - circlog logs <project-name> -j <job-number> -s <step-number> -i <step-index> -a <allocation-id>

Obviously this is rather cumbersome, especially when the final request uses information gathered from multiple other responses.

circlog TUI

A simple TUI solves this. circlog <project-name> allows easy browsing to the required logs. Pressing the D key at this point will result in the circlog command needed to grab these logs being printed to the terminal. This command can then be used to retreive the logs and directly dump them into the terminal.

Configuration

If you have the CircleCi CLI tool installed and configured already circlog will work 'out of the box' by using the token set in the CircleCi CLI config file.

You may also add a token to the CIRCLECI_TOKEN env var which will be used instead.

circlog's People

Contributors

lupinelab avatar chasinglogic avatar

Watchers

 avatar

Forkers

chasinglogic

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.