diff --git a/tldr/cs-resolve b/tldr/cs-resolve index 54737f7c..684bfae1 100644 --- a/tldr/cs-resolve +++ b/tldr/cs-resolve @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Resolve dependency tree in a reverse order (from a dependency to its dependencies): -`cs resolve --reverse-tree {{group_id}}:{{artifact_id}}:{{artifact_version}` +`cs resolve --reverse-tree {{group_id}}:{{artifact_id}}:{{artifact_version}}` - Print all the libraries that depends on a specific library: diff --git a/tldr/dotenvx b/tldr/dotenvx new file mode 100644 index 00000000..7a801750 --- /dev/null +++ b/tldr/dotenvx @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# dotenvx + +> A better `dotenv`, from the creator of `dotenv`. +> More information: . + +- Run a command with environment variables from a `.env` file: + +`dotenvx run -- {{command}}` + +- Run a command with environment variables from a specific `.env` file: + +`dotenvx run -f {{path/to/file.env}} -- {{command}}` + +- Set an environment variable with encryption: + +`dotenvx set {{key}} {{value}}` + +- Set an environment variable without encryption: + +`dotenvx set {{key}} {{value}} --plain` + +- Return environment variables defined in a `.env` file: + +`dotenvx get` + +- Return the value of an environment variable defined in a `.env` file: + +`dotenvx get {{key}}` + +- Return all environment variables from `.env` files and OS: + +`dotenvx get --all` diff --git a/tldr/git-log b/tldr/git-log index 56baebf4..11e2e943 100644 --- a/tldr/git-log +++ b/tldr/git-log @@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git - Show the last N number of commits from a certain author: -`git log {{--max-count|-n} {{number}} --author "{{author}}"` +`git log {{--max-count|-n}} {{number}} --author "{{author}}"` - Show commits between two dates (yyyy-mm-dd): diff --git a/tldr/linux/mt b/tldr/linux/mt index e1ef29c8..603b30ea 100644 --- a/tldr/linux/mt +++ b/tldr/linux/mt @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Write EOF (End-of-file) mark at the current position: -`mt -f {{/dev/nstX} eof` +`mt -f {{/dev/nstX}} eof` diff --git a/tldr/linux/urpmi.addmedia b/tldr/linux/urpmi.addmedia index c672c65e..e3acb424 100644 --- a/tldr/linux/urpmi.addmedia +++ b/tldr/linux/urpmi.addmedia @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git - Add important media from a chosen mirror: -`sudo urpmi.addmedia --distrib ftp://{{mirror_website}/mirror/mageia/distrib/{{version}}/{{arch}}` +`sudo urpmi.addmedia --distrib ftp://{{mirror_website}}/mirror/mageia/distrib/{{version}}/{{arch}}` - Automatically select mirrors from a mirror list: diff --git a/tldr/vboxmanage-cloud b/tldr/vboxmanage-cloud index 2aae5dad..bf561a7d 100644 --- a/tldr/vboxmanage-cloud +++ b/tldr/vboxmanage-cloud @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - List the instances in the specified state belonging to the specified compartment: -`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} list instances --state={{running|terminated|paused}} --compartment-id={{compartment_id}` +`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} list instances --state={{running|terminated|paused}} --compartment-id={{compartment_id}}` - Create a new instance: