Skip to content

Commit

Permalink
Merge pull request #791 from adrianschroeter/shell_cmd
Browse files Browse the repository at this point in the history
complete --shell-cmd support
  • Loading branch information
lethliel committed May 12, 2020
2 parents 1d056c0 + 12e0b67 commit 2b26419
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,10 @@ def main(apiurl, opts, argv):
if opts.shell:
buildargs.append("--shell")

if opts.shell_cmd:
buildargs.append("--shell-cmd")
buildargs.append(opts.shell_cmd)

if opts.noinit:
buildargs.append('--noinit')

Expand Down
4 changes: 4 additions & 0 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -6406,10 +6406,14 @@ def do_build(self, subcmd, opts, *args):
osc shell [OPTS] REPOSITORY ARCH
Run a single command inside of the build environment:
osc shell --shell-cmd=COMMAND [OPTS] REPOSITORY ARCH
OPTS may be
--noinit # for faster run
--shell-cmd=COMMAND
--extra-pkgs=PACKAGE # install additional packages
To clean up the build environment run
Expand Down

0 comments on commit 2b26419

Please sign in to comment.