Compare commits

...

3 Commits

3 changed files with 26 additions and 12 deletions

View File

@ -9,12 +9,12 @@ You can create many sections in your `.env` and switch between them.
Rules:
- State name starts on a new line with `###` symbols (Ex. `### local`)
- State name can contain multiple comma-separated sections (Ex.
- Section name starts on a new line with `###` symbols (Ex. `### local`)
- Section can contain multiple comma-separated names (Ex.
`### local,staging`)
- Each section may specify a namespace (Ex. `### debug:on,dev:on`). If a section
doesn't contain a namespace, it's a global namespace.
- State ends if line is empty or contains a new state name.
- Each section name may specify a namespace (Ex. `### debug:on,dev:on`). If a
section doesn't contain a namespace, it's a global namespace.
- Section ends if line is empty or contains a new section name.
You can see the [full example].

View File

@ -3,9 +3,23 @@
- latest
- 0.4
# vnetod
# vnetod*
Dotenv state switcher
<small><strong>*</strong> inverted word "dotenv"</small>
Are you still switching sections in your dotenv file manually? Try this dotenv
section switcher!
You can create many sections in your `.env` and switch between them.
Rules:
- Section name starts on a new line with `###` symbols (Ex. `### local`)
- Section can contain multiple comma-separated names (Ex.
`### local,staging`)
- Each section name may specify a namespace (Ex. `### debug:on,dev:on`). If a
section doesn't contain a namespace, it's a global namespace.
- Section ends if line is empty or contains a new section name.
# Usage

View File

@ -39,8 +39,8 @@
let
pkgs = import nixpkgs { inherit system; };
vnetod = pkgs.callPackage mkVnetod { };
coloredVnetod = pkgs.callPackage mkVnetod { vnetodFeatures = [ "color" ]; };
vnetod = pkgs.callPackage mkVnetod { vnetodFeatures = [ "color" ]; };
minimalVnetod = pkgs.callPackage mkVnetod { };
docker = pkgs.dockerTools.buildLayeredImage {
name = "pleshevskiy/vnetod";
@ -48,7 +48,7 @@
config = {
Volumes."/data" = { };
WorkingDir = "/data";
Entrypoint = [ "${coloredVnetod}/bin/vnetod" ];
Entrypoint = [ "${vnetod}/bin/vnetod" ];
};
};
@ -60,13 +60,13 @@
{
apps = {
default = mkApp vnetod;
colored = mkApp coloredVnetod;
minimal = mkApp minimalVnetod;
};
packages = {
inherit docker vnetod;
default = vnetod;
colored = coloredVnetod;
minimal = minimalVnetod;
};
devShell = pkgs.mkShell {