Metadata-Version: 2.1
Name: managedtenants-cli
Version: 1.0.0
Summary: A CLI tool commonly used by MT-SRE projects at Red Hat
Home-page: https://github.com/mt-sre/managed-tenants-cli
Author: Red Hat Managed Tenants SRE Team
Author-email: sd-mt-sre@redhat.com
License: Apache-2.0
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.6
Requires-Dist: Jinja2 (~=2.10)
Requires-Dist: PyYAML (~=5.1)
Requires-Dist: jsonschema (~=3.1)
Requires-Dist: requests (~=2.23)
Requires-Dist: sretoolbox (==0.15.0)
Requires-Dist: semver (~=2.9)
Requires-Dist: python-gitlab (~=2.6)
Requires-Dist: checksumdir (~=1.2)
Requires-Dist: hypothesis (~=6.17.4)

# Managed Tenants CLI

A CLI tool commonly used by MT-SRE projects at Red Hat.

## Usage

### Available subcommands

- `load` - Loads the addons inventory
- `run` - Runs the task
- `task_reference` - [path:search] "path" for the directory or file and
  "search" string to filter tasks

### Available flags

- `-v` or `--version` - CLI version
- `--environment` - Target environment
- `--adon-name` - Load only a given addon
- `--addon-dir` - [path] "path" for the addons directory
- `--ocm-api` - Override the environments in OCM A
- `--ocm-api-insecure` - Allow Insecure connections to OCM API

## Install

From PyPI:
```bash
$ pip install managedtenants_cli
```

From source:
```bash
$ python setup.py install
```

## Develop

Install the development requirements:

```bash
$ make develop
```

Run the code checks and tests:
```bash
$ make check
```


## Release

Edit the VERSION file and change the new version. Submit a pull request to master. When it is merged, create a tag and push it to app-sre/sretoolbox.

This will trigger a CI job that will publish the package on pypi.

## License

The default license of the code in this repository is [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0). That applies for most of the code here, as they were written from scratch, but exceptions exist. In any case, each module carries the corresponding licensing information.


