summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-06-13 14:21:55 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-14 10:18:29 +0100
commit746351100ef860d3438e93683dc2ed4ba8d213e8 (patch)
tree7e9192b1231a40c56e67bf3a95a2664ec3abe261 /scripts/wic
parent7213625a7d035b6b1627aa96e94186ee6c2c531f (diff)
downloadpoky-746351100ef860d3438e93683dc2ed4ba8d213e8.tar.gz
wic: add 'wic ls' command
Added empty 'wic ls' command that does nothing. The functionality will be added by the next commits. (From OE-Core rev: ba4613469cc2c3d3433be2e2f520f4fff6b3b333) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic
index 6c9a30da7d..4161f80367 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -234,6 +234,14 @@ def wic_list_subcommand(args, usage_str):
234 raise WicError("Bad list arguments, exiting") 234 raise WicError("Bad list arguments, exiting")
235 235
236 236
237def wic_ls_subcommand(args, usage_str):
238 """
239 Command-line handling for list content of images.
240 The real work is done by engine.wic_ls()
241 """
242 engine.wic_ls(args, args.native_sysroot)
243
244
237def wic_help_subcommand(args, usage_str): 245def wic_help_subcommand(args, usage_str):
238 """ 246 """
239 Command-line handling for help subcommand to keep the current 247 Command-line handling for help subcommand to keep the current
@@ -266,6 +274,9 @@ helptopics = {
266 "create": [wic_help_topic_subcommand, 274 "create": [wic_help_topic_subcommand,
267 wic_help_topic_usage, 275 wic_help_topic_usage,
268 hlp.wic_create_help], 276 hlp.wic_create_help],
277 "ls": [wic_help_topic_subcommand,
278 wic_help_topic_usage,
279 hlp.wic_ls_help],
269 "list": [wic_help_topic_subcommand, 280 "list": [wic_help_topic_subcommand,
270 wic_help_topic_usage, 281 wic_help_topic_usage,
271 hlp.wic_list_help] 282 hlp.wic_list_help]
@@ -359,6 +370,10 @@ subcommands = {
359 hlp.wic_list_usage, 370 hlp.wic_list_usage,
360 hlp.wic_list_help, 371 hlp.wic_list_help,
361 wic_init_parser_list], 372 wic_init_parser_list],
373 "ls": [wic_ls_subcommand,
374 hlp.wic_ls_usage,
375 hlp.wic_ls_help,
376 wic_init_parser_ls],
362 "help": [wic_help_subcommand, 377 "help": [wic_help_subcommand,
363 wic_help_topic_usage, 378 wic_help_topic_usage,
364 hlp.wic_help_help, 379 hlp.wic_help_help,