Developer control tool for [Stagex].
- Go 79.1%
- Dockerfile 17.4%
- Shell 3.5%
| cmd/sxctl | feat: add self-install operation | |
| pkg | use stagex prefix instead of guesswork | |
| .gitignore | util: add helper scripts | |
| build.sh | util: add helper scripts | |
| Containerfile | rename stagexctl -> sxctl | |
| go.mod | rename stagexctl -> sxctl | |
| LICENSE | initial commit | |
| lint.sh | util: add helper scripts | |
| README.md | feat: add self-install operation | |
Stagex control tool
sxctl is a control tool for developers of the StageX project.
Presently, the main command is gen make, which generates the packages makefile for stagex.
An example usage would be:
cd stagex
docker run --rm \
--volume .:/src \
--user $(id -u):$(id -g) \
sxctl \
-- -baseDir=/src gen make
It can also be compiled and used directly:
cd stagex
sxctl gen make
Install-from-container
sxctl contains a function which allows itself to be easily copied out from its container.
To use it, bind mount the receiving directory to /target inside the container.
Something like this should do:
mkdir -p /home/myuser/.local/bin
docker run --rm \
--volume /home/myuser/.local/bin:/target
--user $(id -u):$(id -g) \
sxctl install