cli

command module
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

cli

Build Status codecov Go Report Card License Tag

Introduction

cli is the CLI of pipego written in Go.

Prerequisites

  • Go >= 1.18.0

Run

version=latest make build
./bin/cli --config-file="$PWD"/test/config/config.yml --runner-file="$PWD"/test/data/runner.json --scheduler-file="$PWD"/test/data/scheduler.json

Docker

version=latest make docker
docker run -v "$PWD"/test:/tmp ghcr.io/pipego/cli:latest --config-file=/tmp/config/config.yml --runner-file=/tmp/data/runner.json --scheduler-file=/tmp/data/scheduler.json

Usage

usage: cli --config-file=CONFIG-FILE --runner-file=RUNNER-FILE --scheduler-file=SCHEDULER-FILE [<flags>]

pipego cli

Flags:
  --help                     Show context-sensitive help (also try --help-long and --help-man).
  --version                  Show application version.
  --config-file=CONFIG-FILE  Config file (.yml)
  --runner-file=RUNNER-FILE  Runner file (.json)
  --scheduler-file=SCHEDULER-FILE
                             Scheduler file (.json)

Settings

cli parameters can be set in the directory config.

An example of configuration in config.yml:

apiVersion: v1
kind: cli
metadata:
  name: cli
spec:
  runner:
    host: 127.0.0.1
    port: 29090
    timeout: 300
  scheduler:
    host: 127.0.0.1
    port: 28082
    timeout: 300

License

Project License can be found here.

Reference

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL