70 """! Function wrapping flashing (copy) plugin
71 @details USers can use mbedflsh command to flash mbeds from command line
78 version = pkg_resources.require(
"mbed-host-tests")[0].version
81 elif opts.list_plugins:
82 host_tests_plugins.print_plugin_info()
88 print(
"mbedflsh: opening file %s..."% opts.filename)
89 result = host_tests_plugins.call_plugin(
'CopyMethod',
91 image_path=opts.filename,
92 destination_disk=opts.disk)
93 errorlevel_flag = result ==
True
95 return errorlevel_flag