How to use the gitman.cli.main function in gitman

To help you get started, we’ve selected a few gitman examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jacebrowning / gitman / tests / test_cli.py View on Github external
def it_prints_location_by_default(show, location):
        cli.main(['show'])

        expect(show.mock_calls) == [call(location, color='path')]
github jacebrowning / gitman / tests / test_cli.py View on Github external
def it_launches_the_config(launch, config):
        cli.main(['edit'])

        expect(launch.mock_calls) == [call(config), call().__bool__()]
github jacebrowning / gitman / tests / test_cli.py View on Github external
def it_exits_when_no_config_found(tmpdir):
        tmpdir.chdir()

        with expect.raises(SystemExit):
            cli.main(['edit'])
github jacebrowning / gitman / tests / test_cli.py View on Github external
def it_exits_when_no_config_found(tmpdir):
        tmpdir.chdir()

        with expect.raises(SystemExit):
            cli.main(['show'])
github jacebrowning / gitman / tests / test_cli.py View on Github external
def it_can_print_a_depenendcy_path(show, location):
        cli.main(['show', 'bar'])

        expect(show.mock_calls) == [call(os.path.join(location, "bar"), color='path')]