Compare commits
3 Commits
1f9e1d0e9e
...
9eebd41db0
Author | SHA1 | Date |
---|---|---|
Dmitriy Pleshevskiy | 9eebd41db0 | |
Dmitriy Pleshevskiy | f4d4d46390 | |
Dmitriy Pleshevskiy | 4f583c160d |
10
README.md
10
README.md
|
@ -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].
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
10
flake.nix
10
flake.nix
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue