Skip to main content

Command line wrapper for ChangeMan ZMF Rest API

Project description

zmfcli

build PyPi Version Maintainability codecov

Command line interface (cli) for ChangeMan ZMF through REST API. Using fire to create the cli.

Usage

Credentials

Credentials and url can be exported to ZMF_REST_* variables, so those do not need to be privided with each command execution.

export ZMF_REST_URL=http://httpbin.org:80/anything/zmfrest
export ZMF_REST_USER=U000000
export ZMF_REST_PWD=pa$$w0rd
zmf build "APP 000001" "['src/SRE/APP00001.sre', 'src/SRB/APP00002.srb', 'src/SRB/APP00003.srb']"

Example

Audit a package

$ zmf audit "APP 000001"

Commands

Get help for a command

$ zmf promote --help
Command Description
checkin PUT component/checkin
build PUT component/build
scratch PUT component/scratch
audit PUT package/audit
promote PUT package/promote
freeze PUT package/freeze
revert PUT package/revert
search-package GET package/search
create-package POST package
get-package Search or create if package does not exist
get-components GET component
get-load-components GET component/load
browse-component GET component/browse

Pretty print result

Some results may return JSON data, this data can be pretty printed with Python

zmf get-load-components "APP 000001" "LST" | python -m json.tool

ChangeMan ZMF Documents

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zmfcli-0.1.19.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

zmfcli-0.1.19-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file zmfcli-0.1.19.tar.gz.

File metadata

  • Download URL: zmfcli-0.1.19.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for zmfcli-0.1.19.tar.gz
Algorithm Hash digest
SHA256 5367096a5c8e7a26d4d54e627b3e1c8686e2d3e7223d52465343e0d0bac3bd97
MD5 c2890e2ee61f27217c54cc0200115b2b
BLAKE2b-256 f281d74f097c0fb5689ed8b1911f9388c9be712d67035867e3d5d5e59d043533

See more details on using hashes here.

File details

Details for the file zmfcli-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: zmfcli-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for zmfcli-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 cf576880c3dea31c94fc91790e76e0ecc4b914f409bf194a7f465345a97e96e9
MD5 11ac9eb0d92e767f719c978a5972b890
BLAKE2b-256 1a5aa3412a803ee477d9e39cbfe2a72385b700ce43a768fece04dda14ff42e11

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page