move packages/flavour.py to flavours/
This commit is contained in:
parent
ed4226a505
commit
777b3172d8
10 changed files with 29 additions and 26 deletions
20
flavours/cli.py
Normal file
20
flavours/cli.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
import click
|
||||
|
||||
from .flavour import get_flavours
|
||||
|
||||
profile_option = click.option('-p', '--profile', help="name of the profile to use", required=False, default=None)
|
||||
|
||||
|
||||
@click.command(name='flavours')
|
||||
def cmd_flavours():
|
||||
'list information about available flavours'
|
||||
flavours = get_flavours()
|
||||
if not flavours:
|
||||
raise Exception("No flavours found!")
|
||||
for name in sorted(flavours.keys()):
|
||||
f = flavours[name]
|
||||
try:
|
||||
f.parse_flavourinfo()
|
||||
except:
|
||||
pass
|
||||
print(f)
|
Loading…
Add table
Add a link
Reference in a new issue