X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=README.md;h=4b865c70afb770c280a3841df174b867dc22d7f5;hb=b475e068da9d4642737101977f010958bd151f5e;hp=1791594c20feb1bc55d8b986a478d05035630bb2;hpb=404b4ea6e3fa2adf4349883488dadca4862dcaf7;p=osm%2Fosmclient.git diff --git a/README.md b/README.md index 1791594..4b865c7 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ from osmclient.common.exceptions import ClientException hostname = "127.0.0.1" myclient = client.Client(host=hostname, sol005=True) resp = myclient.nsd.list() -print yaml.safe_dump(resp) +print yaml.safe_dump(resp, indent=4, default_flow_style=False) ``` ### Simple Python code to get the list of VNF packages from a specific user and project @@ -151,7 +151,7 @@ if project is not None: kwargs['project']=project myclient = client.Client(host=hostname, sol005=True, **kwargs) resp = myclient.vnfd.list() -print yaml.safe_dump(resp) +print yaml.safe_dump(resp, indent=4, default_flow_style=False) ``` ## Enable autocompletion @@ -169,3 +169,13 @@ Then you can add the following to your $HOME/.bashrc file: . .bash_completion.d/osm-complete.sh ``` +## Future work + +- Create command classes for list and show operations +- Option `-c` for list and show operations to filter output and show only selected columns +- Option `-o ` to adapt output format (table, csv, yaml, json, jsonpath) +- Command ns-status to show the deployment status (RO) and configuration status (VCA) in an appealing format +- See how to deprecate commands and options: +- Evaluate the possibility to re-structure code to uniform all commands: `check`, `table_headers`, `run`, `output` + +