X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=README.md;h=c53049e3463d7931850555e6f806b39c82ee6170;hb=refs%2Fheads%2Fv14.0;hp=1791594c20feb1bc55d8b986a478d05035630bb2;hpb=404b4ea6e3fa2adf4349883488dadca4862dcaf7;p=osm%2Fosmclient.git diff --git a/README.md b/README.md index 1791594..c53049e 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,12 @@ 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` +