Skip to content

Commit

Permalink
fix(explain): verbose examples for explain command
Browse files Browse the repository at this point in the history
  • Loading branch information
smrutisenapati authored and pallabpain committed May 4, 2023
1 parent d34dcaa commit c5dcf8a
Show file tree
Hide file tree
Showing 49 changed files with 1,845 additions and 412 deletions.
4 changes: 2 additions & 2 deletions riocli/apply/explain.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def explain(resource: str, templates: str = None) -> None:
path = Path(__file__).parent.joinpath('manifests')

for each in path.glob('**/*'):
if resource in each.name:
if resource + '.yaml' == each.name:
with open(each) as f:
click.secho(f.readlines())
click.echo_via_pager(f.readlines())
raise SystemExit(0)

click.secho("[Err] Resource \"{}\" not found".format(resource), fg='red')
Expand Down
19 changes: 0 additions & 19 deletions riocli/apply/manifests/04-build-catkin.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions riocli/apply/manifests/05-build-docker.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions riocli/apply/manifests/06-build-docker-ros.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions riocli/apply/manifests/07-device-preinstalled.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions riocli/apply/manifests/08-device-docker.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions riocli/apply/manifests/09-cloud-routed-network.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions riocli/apply/manifests/10-device-routed-network.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions riocli/apply/manifests/11-cloud-native-network.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions riocli/apply/manifests/12-device-native-network.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions riocli/apply/manifests/13-device-package-with-rosbag.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions riocli/apply/manifests/14-cloud-package-with-rosbag.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c5dcf8a

Please sign in to comment.