|
@@ -21,17 +21,17 @@ def cli(ctx, single, names):
|
|
for n in names:
|
|
for n in names:
|
|
if n.endswith(":"):
|
|
if n.endswith(":"):
|
|
# enforce group name by ending with ':'
|
|
# enforce group name by ending with ':'
|
|
- command_ctl(ctx, 'get_statistics', [ n ])
|
|
|
|
|
|
+ command_ctl(ctx, 'stats.get_statistics', [ n ])
|
|
elif n.find(":")>0:
|
|
elif n.find(":")>0:
|
|
# get only stat name, when providing 'group:stat'
|
|
# get only stat name, when providing 'group:stat'
|
|
- command_ctl(ctx, 'get_statistics', [ n.split(":")[1] ])
|
|
|
|
|
|
+ command_ctl(ctx, 'stats.get_statistics', [ n.split(":")[1] ])
|
|
elif single:
|
|
elif single:
|
|
# single stat name flag
|
|
# single stat name flag
|
|
- command_ctl(ctx, 'get_statistics', [ n ])
|
|
|
|
|
|
+ command_ctl(ctx, 'stats.get_statistics', [ n ])
|
|
else:
|
|
else:
|
|
# default is group name
|
|
# default is group name
|
|
- command_ctl(ctx, 'get_statistics', [ n+":" ])
|
|
|
|
|
|
+ command_ctl(ctx, 'stats.get_statistics', [ n+":" ])
|
|
else:
|
|
else:
|
|
# no name, print all
|
|
# no name, print all
|
|
- command_ctl(ctx, 'get_statistics', [ 'all' ])
|
|
|
|
|
|
+ command_ctl(ctx, 'stats.get_statistics', [ 'all' ])
|
|
|
|
|