Achuith Bhandarkar | d8d1929 | 2016-05-03 14:32:58 -0700 | [diff] [blame] | 1 | # Copyright 2016 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Achuith Bhandarkar | e3d5e57 | 2018-11-17 14:29:51 -0800 | [diff] [blame] | 5 | """CLI entry point into lib/vm.py; used for VM management.""" |
Achuith Bhandarkar | d8d1929 | 2016-05-03 14:32:58 -0700 | [diff] [blame] | 6 | |
Achuith Bhandarkar | e3d5e57 | 2018-11-17 14:29:51 -0800 | [diff] [blame] | 7 | from chromite.lib import vm |
Achuith Bhandarkar | 9f49aca | 2018-10-30 17:46:07 -0700 | [diff] [blame] | 8 | |
Mike Frysinger | 4a243fb | 2020-02-21 02:56:35 -0500 | [diff] [blame] | 9 | |
Achuith Bhandarkar | d8d1929 | 2016-05-03 14:32:58 -0700 | [diff] [blame] | 10 | def main(argv): |
Achuith Bhandarkar | e3d5e57 | 2018-11-17 14:29:51 -0800 | [diff] [blame] | 11 | opts = vm.VM.GetParser().parse_args(argv) |
Achuith Bhandarkar | 2beae29 | 2018-03-26 16:44:53 -0700 | [diff] [blame] | 12 | opts.Freeze() |
| 13 | |
Achuith Bhandarkar | e3d5e57 | 2018-11-17 14:29:51 -0800 | [diff] [blame] | 14 | vm.VM(opts).Run() |