diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-06-13 14:21:55 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-14 10:18:20 +0100 |
commit | ba4613469cc2c3d3433be2e2f520f4fff6b3b333 (patch) | |
tree | 451ec82445b435e18f76ec3eef6ccdca898ee548 /scripts/wic | |
parent | 5152f993777550e5e8a420db4d1f3c4370cd1d33 (diff) | |
download | openembedded-core-contrib-ba4613469cc2c3d3433be2e2f520f4fff6b3b333.tar.gz |
wic: add 'wic ls' command
Added empty 'wic ls' command that does nothing.
The functionality will be added by the next commits.
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-x | scripts/wic | 15 |
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): raise WicError("Bad list arguments, exiting") +def wic_ls_subcommand(args, usage_str): + """ + Command-line handling for list content of images. + The real work is done by engine.wic_ls() + """ + engine.wic_ls(args, args.native_sysroot) + + def wic_help_subcommand(args, usage_str): """ Command-line handling for help subcommand to keep the current @@ -266,6 +274,9 @@ helptopics = { "create": [wic_help_topic_subcommand, wic_help_topic_usage, hlp.wic_create_help], + "ls": [wic_help_topic_subcommand, + wic_help_topic_usage, + hlp.wic_ls_help], "list": [wic_help_topic_subcommand, wic_help_topic_usage, hlp.wic_list_help] @@ -359,6 +370,10 @@ subcommands = { hlp.wic_list_usage, hlp.wic_list_help, wic_init_parser_list], + "ls": [wic_ls_subcommand, + hlp.wic_ls_usage, + hlp.wic_ls_help, + wic_init_parser_ls], "help": [wic_help_subcommand, wic_help_topic_usage, hlp.wic_help_help, |