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

WenjieDu / PyPOTS / 4749364791

pending completion
4749364791

push

github

GitHub
Merge pull request #61 from WenjieDu/dev

2786 of 3436 relevant lines covered (81.08%)

0.82 hits per line

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

0.0
/pypots/utils/commands/pypots_cli.py
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

9
from argparse import ArgumentParser
×
10

11
from pypots.utils.commands.dev import DevCommand
×
12
from pypots.utils.commands.doc import DocCommand
×
13

14

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

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

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

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

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

36

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