python
from cement import App, Controller, ex
class MyBaseController(Controller):
class Meta:
label = 'base'
description = 'My Application'
@ex(help='example subcommand')
def my_command(self):
print('Hello, Cement!')
class MyApp(App):
class Meta:
label = 'myapp'
base_controller = 'base'
handlers = [MyBaseController]
with MyApp() as app:
app.run()