Metadata-Version: 2.1
Name: srecli
Version: 0.0.6
Summary: CLI tool for common SRE related work
Author-email: Shibhikkiran D <shibhikkiran@example.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: dev
Provides-Extra: test
Provides-Extra: ci
License-File: LICENSE

# Srecli

`srecli` is a click based CLI tool to cater common SRE related system automation tasks.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install `srecli`.

```bash
pip install srecli
```

## Usage
#### Show status
```bash
srecli show status
2023/05/29 15:41:44 UTC | INFO     | This is info msg
2023/05/29 15:41:44 UTC | WARNING  | This is warning msg
2023/05/29 15:41:44 UTC | ERROR    | This is error msg
2023/05/29 15:41:44 UTC | CRITICAL | This is critical msg
2023/05/29 15:41:44 UTC | SUCCESS  | This is success msg
echo msg: Hello
```
#### Show status with debug 
```bash
srecli show status --debug
2023/05/29 15:43:45 UTC | DEBUG    | srecli.commands.cmd_status.show:39 | PID=1966 | This is debug msg
2023/05/29 15:43:47 UTC | INFO     | srecli.commands.cmd_status.show:41 | PID=1966 | This is info msg
2023/05/29 15:43:47 UTC | WARNING  | srecli.commands.cmd_status.show:42 | PID=1966 | This is warning msg
2023/05/29 15:43:47 UTC | ERROR    | srecli.commands.cmd_status.show:43 | PID=1966 | This is error msg
2023/05/29 15:43:47 UTC | CRITICAL | srecli.commands.cmd_status.show:44 | PID=1966 | This is critical msg
2023/05/29 15:43:47 UTC | SUCCESS  | srecli.commands.cmd_status.show:45 | PID=1966 | This is success msg
echo msg: Hello
```
#### Show status with custom message
```bash
srecli show status --echo-msg "Hello from Srecli"
2023/05/29 15:41:44 UTC | INFO     | This is info msg
2023/05/29 15:41:44 UTC | WARNING  | This is warning msg
2023/05/29 15:41:44 UTC | ERROR    | This is error msg
2023/05/29 15:41:44 UTC | CRITICAL | This is critical msg
2023/05/29 15:41:44 UTC | SUCCESS  | This is success msg
echo msg: Hello from Srecli
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)
