2c26284212425153616e2b4479a6d6a351dba9f7
[bottlenecks.git] / vstf / vstf / controller / settings / settings_input.py
1 #!/usr/bin/python
2 # -*- coding: utf8 -*-
3 # author: wly
4 # date: 2015-10-16
5 # see license for license details
6
7
8 import clize
9 from sigtools.modifiers import autokwoargs
10 from vstf.controller.settings.mail_settings import MailSettings
11 from vstf.controller.settings.perf_settings import PerfSettings
12 from vstf.controller.settings.cpu_settings import CpuSettings
13 from vstf.controller.settings.tool_settings import ToolSettings
14
15
16 @autokwoargs
17 def sinput(mail=False, perf=False, affctl=False, tool=False):
18     """Settings command line input
19
20     mail:  if start mail settings
21
22     perf:  if start perf settings
23
24     affctl:  if start set cpu affability
25
26     tool:  if start set tool properties
27
28     """
29
30     if mail:
31         MailSettings().sinput()
32     if perf:
33         PerfSettings().sinput()
34     if affctl:
35         CpuSettings().sinput()
36     if tool:
37         ToolSettings().sinput()
38
39
40 def main():
41     clize.run(sinput)
42
43 if __name__ == '__main__':
44     main()