Coverage for heliumcli/actions/update.py : 100.00%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import subprocess
3__author__ = "Alex Laird"
4__copyright__ = "Copyright 2018, Helium Edu"
5__version__ = "1.5.0"
8class UpdateAction:
9 def __init__(self):
10 self.name = "update"
11 self.help = "Update the CLI tool to the latest version"
13 def setup(self, subparsers):
14 parser = subparsers.add_parser(self.name, help=self.help)
15 parser.set_defaults(action=self)
17 def run(self, args):
18 subprocess.call(["pip", "install", "--upgrade", "heliumcli"])