Metadata-Version: 2.4
Name: opsctl
Version: 0.2.3
Summary: OPS CTL Tool
Author-email: Will <v.stone@163.com>
Maintainer-email: Will <v.stone@163.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/bxwillshi/opsctl
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyYAML
Requires-Dist: requests
Requires-Dist: jinja2
Dynamic: license-file

# Ops CTL tool
*Generated by script `generate_readme.sh`*

[![Org](https://img.shields.io/static/v1?label=org&message=TMAN&color=597ed9)](https://will.bowxeon.com)
![Author](https://img.shields.io/static/v1?label=author&message=v.stone@163.com&color=blue)
![License](https://img.shields.io/github/license/seoktaehyeon/opsctl)
[![python](https://img.shields.io/static/v1?label=Python&message=3.8&color=3776AB)](https://www.python.org)
[![PyPI](https://img.shields.io/pypi/v/opsctl.svg)](https://pypi.org/project/opsctl/)

### Install

```bash
pip install opsctl
```

### Upgrade

```bash
pip install opsctl --upgrade
```

### Test

```bash
python -m pip install -e .
cd test
pytest *
```

### Feature

```text 
opsctl
  tmpl2art	Render templates to articles
  env2json	Get environ variables to Json file
  env2yaml	Get environ variables to YAML file
  bamboo	Bamboo CLI
  version	Show opsctl version
```

- 	Render templates to articles

```text 
opsctl tmpl2art
  --config	Key-Value config file path, file type is YAML
  --tmpl	Template dir path or template file path
  --output	Articles output path
```

- 	Get environ variables to Json file

```text 
opsctl env2json
  --output	Output Json file path
  --input	Optional. Ensure your input file format that is must be same with output of command "env".
         	Get current os environ variables if let this option empty.
```

- 	Get environ variables to YAML file

```text 
opsctl env2yaml
  --output	Output YAML file path
  --input	Optional. Ensure your input file format that is must be same with output of command "env".
         	Get current os environ variables if let this option empty.
```

- 	Bamboo CLI

```text 
opsctl bamboo
  --host	Bamboo server host base url
  --token	Bamboo server access token
  --deploy	Trigger Bamboo deployment project running. Format is deploymentProjectName:environmentName
  --param	Optional. Update target variables paramKey:paramValue
```
