reflectctl

command module
v0.0.0-...-63be6c5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

reflectctl

An unofficial CLI for Reflect.

NOTE: This project is very much under construction and therefore the code is unstable, largely untested and has high churn! Currently, it only implements a subset of the Reflect API. In most cases there is a clear path forward for adding more capabilities. PRs are welcome!

CI

Installation

Clone the reponsitory:

git clone https://github.com/employeecycle/reflectctl

And then compile from source:

make install

Test the installation by running the binary:

reflectctl

Export your Reflect API token in an environment variable:

export REFLECT_KEY=<secret value>

Optionally, add a configuration file in your home directory:

touch ~/.reflectctl.yaml

Usage

View full usage by running the help command:

reflectctl --help

A common use pattern is first executing all tests associated with a tag, in this case regression:

reflectctl execute tag regression

And then viewing the test status:

reflectctl executions status [test ID from execute command above]

You can chain these commands together by piping the outout of execute tag into the input for executions status (and watch the output live) like this:

reflectctl execute tag regression | reflectctl executions status -w

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
Package cmd contains all CLI commands and options
Package cmd contains all CLI commands and options
sdk
reflect
Package reflect is an SDK wrapper around the reflect HTTP API
Package reflect is an SDK wrapper around the reflect HTTP API

Jump to

Keyboard shortcuts

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