diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-07-16 16:45:16 +0100 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-07-16 16:45:16 +0100 |
commit | 4fa8b1dd4974e47e0b404601fd87c351cf73874c (patch) | |
tree | cda080a400bccd1291773d581abc96014a4fd338 /buildstream/_frontend/cli.py | |
parent | bc5a40e3dccbe1cb8066171fc2c0a4a5abeaa31e (diff) | |
download | buildstream-tiagogomes/tarball.tar.gz |
WIP Add support for dumping a tarball streamtiagogomes/tarball
Diffstat (limited to 'buildstream/_frontend/cli.py')
-rw-r--r-- | buildstream/_frontend/cli.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py index e59b1baec..10c7c2804 100644 --- a/buildstream/_frontend/cli.py +++ b/buildstream/_frontend/cli.py @@ -627,19 +627,22 @@ def shell(app, element, sysroot, mount, isolate, build_, command): help="Whether to run integration commands") @click.option('--hardlinks', default=False, is_flag=True, help="Checkout hardlinks instead of copies (handle with care)") +@click.option('--tar', default=False, is_flag=True, + help="Create a tarball of the artifact contents") @click.argument('element', type=click.Path(readable=False)) -@click.argument('directory', type=click.Path(file_okay=False)) +@click.argument('location', type=click.Path()) @click.pass_obj -def checkout(app, element, directory, force, integrate, hardlinks): +def checkout(app, element, location, force, integrate, hardlinks, tar): """Checkout a built artifact to the specified directory """ with app.initialized(): app.stream.checkout(element, - directory=directory, + location=location, force=force, integrate=integrate, - hardlinks=hardlinks) + hardlinks=hardlinks, + tar=tar) ################################################################## |