Helpers for getting started a toolbox ready to work with different code languages, and allow it to provision in a repeatable way.
It is recommended to use direnv to manage local environment variables for your repository. When using it, define:
export TOOLBOX="your-toolbox-name" export TOOLBOX_PROFILE="pre-defined-profile"If you are not using direnv, then be ensure that the environment variables above are defined with the right values to avoid unwanted behaviors.
-
Install wrapper on your local home directory by:
./toolbox.sh install
Now you can run toolbox.sh wrapper from any place.
-
List pre-defined profiles by:
./toolbox.sh profiles
-
Initialize a toolbox for your repository.
toolbox.sh create
-
Enter into the toolbox by:
toolbox.sh enter
-
Re-run the toolbox preparation process by:
toolbox.sh prepare
-
When you finish, you can release the toolbox created by:
toolbox.sh rm
-
To start creating a custom toolbox provisioning, run:
toolbox.sh localcfg
Now edit the fresh created
toolbox.shin your current directory, and add the customizations.You do not need to define TOOLBOX_PROFILE environment variable when you are using your custom
toolbox.shprofile provisioner.
./toolbox.sh: Is the entry-point and main content../toolbox.{TOOLBOX_PROFILE}.shis a pre-defined profile, to make life easier when starting to use them../toolbox.common.shis included by all the profiles (pre-defined, or customized)../toolbox_helper.shis a set of functions to help you on defining your custom profiles; they are used on the pre-defined profiles.
- Allow pre-defined profiles:
- python
- golang
- rust
- c
- c++
- Allow custom profiles on current directory.
- Allow relaunch prepare statement.
Just create a toolbox.my-new-profile.sh file and get
starting by:
pkgs+=() # TODO Add your rpm packages here
include "toolbox.common.sh"
# TODO Add here the actions to prepare the environmnet
# for your profileRead the CONTRIBUTING guidelines.