RFE: run-command function or similar

Open
#148 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
shell
Domain
tooling

Research direction

Start by reviewing the behavior suggested in httpd-container pull request #94 and comparing the command helpers used by httpd-container and other images. Then read beakerlib's rlRun for possible conventions; done means agreeing on and implementing the scope of a generic ct_run_cmd function, including output, exit-code checking, and standardized logging.

Written by the indexing model from the issue text.

Description

As suggested in https://github.com/sclorg/httpd-container/pull/94, there could be a generic ct_run_cmd function similar to what https://github.com/sclorg/httpd-container/ and some other images use -- such a function might check the output and exit code, might also print some standardized logging etc...

A note: we might get some more inspiration in beakerlib where rlRun has a similar function.

Dominant language
Shell
Stars
25
Forks
45
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sclorg/container-common-scripts

All issues in sclorg/container-common-scripts

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.