forked from kernelci/kernelci-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kci
executable file
·29 lines (23 loc) · 782 Bytes
/
kci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
#
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2022 Collabora Limited
# Author: Guillaume Tucker <[email protected]>
"""KernelCI Command Line Tool
This executable script is the entry point for all the new KernelCI command line
tools which support the new API & Pipeline design. See the documentation for
more details: https://kernelci.org/docs/api/.
"""
import argparse
import sys
import kernelci.cli
if __name__ == '__main__':
parser = argparse.ArgumentParser("KernelCI Command Line Tools")
parser.add_argument(
'command',
choices=kernelci.cli.list_command_names(),
help="Command to run"
)
args = parser.parse_args(sys.argv[1:2])
kernelci.cli.call(args.command, sys.argv[2:])