0.1.11 • Published 3 years ago

progvis-cli v0.1.11

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

ProgVis CLI

This is the cli client for ProgVis.

ProgVis is a simple to use tool for instrumenting periodic and long running batch jobs so you can easily track their progress and state.

Table of Contents

Screenshot

ProgVis Web UI lets you track current and past jobs, view logs, etc.

Here is a sample screen grab:

Sample Progress Bars

Features

ProgVis lets you...

  • Track your cron and batch jobs as they run to completion.
  • Keep records of each run - when they ran, for how long & exit status.
  • Search/view logs to help with troubleshooting.
  • Compare to historical stats to spot performance issues.

Installation

Globally install ProgVis CLI using npm or yarn

npm install -g progvis-cli

Then visit ProgVis, register and get a client access token.

Example Usage

:information_source: for more control, you can use the ProgVis Node client library

Simply pipe the output of your jobs to progvis-cli. It will treat each input line as a step in the process. You can specify the expected number of steps or let progvis estimate it based on past runs.

some_long_running_process --foo=bar | progvis-cli --name=upload_logs --log

Most shells buffer STDOUT in pipes. If you prefer a more real time progress report, consider unbuffering the output of your command. The 'unbuffer' command is part of the 'expect' package which you must install separately.

unbuffer some_long_running_process --foo=bar | progvis-cli --name=upload_logs --log

If you want to continue processing STDOUT, you can use 'tee'.

make | tee >(progvis-cli --name=compile --log) | wc -l

CLI Options

cmd | progvis-cli --name=unique_name [--expected=100] [--token=secret] [--log|--json]
FlagTypeDescription
--namestringA unique, stable name for this job
--expectednumberNumber of expected steps for this job
--logLog each line piped to stdin to ProgVis
--jsonTry to parse each logged line as JSON first
--tokenstringProgVis client access token. Or supply this via env.PV_TOKEN
--helpPrint help message and exit
--versionPrint version and exit

License

ProgVis CLI is MIT Licensed.

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago