• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

WenjieDu / PyPOTS / 9273188117

28 May 2024 04:40PM UTC coverage: 84.034% (+0.008%) from 84.026%
9273188117

push

github

WenjieDu
fix: release as v0.6 RC1 instead of v0.6;

1 of 1 new or added line in 1 file covered. (100.0%)

9669 of 11506 relevant lines covered (84.03%)

5.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pypots/cli/pypots_cli.py
1
"""
2
PyPOTS CLI (Command Line Interface) tool
3
"""
4

5
# Created by Wenjie Du <wenjay.du@gmail.com>
6
# License: BSD-3-Clause
7

8
from argparse import ArgumentParser
×
9

10
from .dev import DevCommand
×
11
from .doc import DocCommand
×
12
from .env import EnvCommand
×
13
from .tuning import TuningCommand
×
14

15

16
def main():
×
17
    parser = ArgumentParser(
×
18
        "PyPOTS Command-Line-Interface tool", usage="pypots-cli <command> [<args>]"
19
    )
20
    commands_parser = parser.add_subparsers(help="pypots-cli command helpers")
×
21

22
    # Register commands here
23
    DevCommand.register_subcommand(commands_parser)
×
24
    DocCommand.register_subcommand(commands_parser)
×
25
    EnvCommand.register_subcommand(commands_parser)
×
26
    TuningCommand.register_subcommand(commands_parser)
×
27

28
    # parse all arguments
29
    args = parser.parse_args()
×
30

31
    if not hasattr(args, "func"):
×
32
        parser.print_help()
×
33
        exit(1)
×
34

35
    # then run
36
    service = args.func(args)
×
37
    service.run()
×
38

39

40
if __name__ == "__main__":
×
41
    main()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc