Source code for cloudmesh_client.shell.plugins.Bar
from __future__ import print_function
from cloudmesh_client.shell.command import command
[docs]class BarCommand(object):
topics = {"bar": "example"}
def __init__(self, context):
self.context = context
if self.context.debug:
print("init Bar")
# noinspection PyUnusedLocal
@command
def do_bar(self, args, arguments):
"""
::
Usage:
bar -f FILE
bar FILE
bar list
This command does some useful things.
Arguments:
FILE a file name
Options:
-f specify the file
"""
print(arguments)