MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / parser

Function parser

gitless/cli/gl_status.py:19–27  ·  view source on GitHub ↗

Adds the status parser to the given subparsers object.

(subparsers, repo)

Source from the content-addressed store, hash-verified

17
18
19def parser(subparsers, repo):
20 """Adds the status parser to the given subparsers object."""
21 desc = 'show status of the repo'
22 status_parser = subparsers.add_parser(
23 'status', help=desc, description=desc.capitalize())
24 status_parser.add_argument(
25 'paths', nargs='*', help='the specific path(s) to status',
26 action=helpers.PathProcessor, repo=repo)
27 status_parser.set_defaults(func=main)
28
29
30def main(args, repo):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected