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

WenjieDu / PyPOTS / 4755049409

pending completion
4755049409

push

github

GitHub
Merge pull request #63 from WenjieDu/dev

61 of 61 new or added lines in 5 files covered. (100.0%)

2832 of 3490 relevant lines covered (81.15%)

0.81 hits per line

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

17.65
/pypots/utils/commands/pypots_cli.py
1
"""
1✔
2
PyPOTS CLI (Command Line Interface) tool
3
"""
4

5
# Created by Wenjie Du <wenjay.du@gmail.com>
6
# License: GLP-v3
7

8
from argparse import ArgumentParser
1✔
9

10
from pypots.utils.commands.dev import DevCommand
1✔
11
from pypots.utils.commands.doc import DocCommand
×
12

13

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

20
    # Register commands here
21
    DevCommand.register_subcommand(commands_parser)
×
22
    DocCommand.register_subcommand(commands_parser)
×
23

24
    # parse all arguments
25
    args = parser.parse_args()
×
26

27
    if not hasattr(args, "func"):
×
28
        parser.print_help()
×
29
        exit(1)
×
30

31
    # then run
32
    service = args.func(args)
×
33
    service.run()
×
34

35

36
if __name__ == "__main__":
×
37
    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