From 9438112ea5850deea1b3c5e8d3adbf7a0f5f1021 Mon Sep 17 00:00:00 2001 From: Andreu Vallbona Plazas Date: Sun, 15 Sep 2019 22:31:46 +0200 Subject: [PATCH 01/22] Fixed typo in the README.md Fixed typo in the README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d145afd..38ca58c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # `bake`— Kinda like Bash & Make, combined. -I love using `Makefile`s for one-off tasks in projects. The problem with doing this, is you can't use familiar bash–isms when doing so, as GNU Make doesn't use the familiar Bash sytnax. This project seeks to bridge these works. +I love using `Makefile`s for one-off tasks in projects. The problem with doing this, is you can't use familiar bash–isms when doing so, as GNU Make doesn't use the familiar Bash syntax. This project seeks to bridge these works. **WORK IN PROGRESS** From 86d2eb21c894ebdc334033441e01516b4e0c342a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:32:54 -0400 Subject: [PATCH 02/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0833106..d0a139a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# `bake`— a Bash task runner. +# `bake`— a strangely familiar Bash task runner. I love using `Makefile`s for one-off tasks in projects. The problem with doing this, is you can't use familiar bash–isms when doing so, as GNU Make doesn't use the familiar Bash sytnax. This project seeks to bridge these works. From aa886d4979d24929cb4cc39f28d1f81beeb11e19 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:34:20 -0400 Subject: [PATCH 03/22] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 9d98973..2620b21 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ Usage: bake [OPTIONS] [TASK] [ARGUMENTS]... Options: -b, --bakefile TEXT -l, --list Lists available tasks from Bakefile. - --shellcheck --allow TEXT Whitelist an environment variable for use. --yes Set medium–security prompts to yes. -c, --continue Fail immediately, if any task fails. From 974954753ad7d47268b3717e1655e8e73499c229 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:34:34 -0400 Subject: [PATCH 04/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2620b21..4a65efa 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ $ bake dangerous-example ## Installation -Install `bake` via: +Install `bake` via (soon): ```console $ brew install kennethreitz/-/bake --HEAD From a4788b69e8fea026e6e91717cd9e88e9d2305418 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:34:42 -0400 Subject: [PATCH 05/22] Update README.md From 237530b5174dde111198af0979979945c8bd3676 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:35:48 -0400 Subject: [PATCH 06/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a65efa..8f358f1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# `bake`— a strangely familiar Bash task runner. +# ☤ `bake`— a strangely familiar Bash task runner. I love using `Makefile`s for one-off tasks in projects. The problem with doing this, is you can't use familiar bash–isms when doing so, as GNU Make doesn't use the familiar Bash syntax. This project seeks to bridge these works. From ef23f7ad9cc291aee5c7701699c8b11d4d044401 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:36:37 -0400 Subject: [PATCH 07/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f358f1..3ced5ef 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Options: ![bake icon](https://github.com/kennethreitz/bake/blob/master/ext/bake.png?raw=true) -## Example `Bakefile`, for use with `bake`: +## Example `Bakefile`, for your next project: ```make full-install: system-deps install From d714219538b767ee8f5e7e1d4f163b0307dd4beb Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:36:57 -0400 Subject: [PATCH 08/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3ced5ef..6648966 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Options: ![bake icon](https://github.com/kennethreitz/bake/blob/master/ext/bake.png?raw=true) -## Example `Bakefile`, for your next project: +## Introducing `Bakefile`, for your next project: ```make full-install: system-deps install From d16f5fed05f774be634594ba254aff27864d8d83 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:37:18 -0400 Subject: [PATCH 09/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6648966..55060ae 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Options: ![bake icon](https://github.com/kennethreitz/bake/blob/master/ext/bake.png?raw=true) -## Introducing `Bakefile`, for your next project: +## `$ cat Bakefile` ```make full-install: system-deps install From 35f691457d123499c88ab8bc770ecc04f1b0c69a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:39:33 -0400 Subject: [PATCH 10/22] Update README.md --- README.md | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 55060ae..c82db0b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,12 @@ Options: -h, --help Show this message and exit. ``` +### Features & Such + +- a `Bakefile`, which looks and feels like the good parts of a `Makefile`. +- except, you can write real bash code! +- Unlike `Makefile`, either tabs or 4 spaces can be used. + ![bake icon](https://github.com/kennethreitz/bake/blob/master/ext/bake.png?raw=true) @@ -54,10 +60,9 @@ system-deps: brew install pipenv ``` -**Running the above `Bakefile`**: +## `$ bake` ```console -$ bake - format - full-install - install @@ -67,14 +72,20 @@ $ bake - python-deps - node-deps - system-deps +``` -$ bake --silent format +## `$ bake --silent format` + +```console All done! ✨ 🍰 ✨ 7 files left unchanged. +``` -$ bake install +## `$ bake install` + +```console · Executing 'node-deps': yarn install v1.17.3 [1/4] 🔍 Resolving packages... @@ -84,28 +95,28 @@ success Already up-to-date. Installing dependencies from Pipfile.lock (2ee04c)… 🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 8/8 — 00:00:01 · Done. +``` -$ bake argv-example WHO=you 1 2 3 - · Executing 'argv-example': +## `$ bake argv-example WHO=you 1 2 3` + +```console +· Executing 'argv-example': ++ echo 'HELLO, you' HELLO, you ++ echo '[1,' 2, '3]' [1, 2, 3] · Done. +``` +## `$ bake dangerous-example` -$ bake dangerous-example +```console · Executing '@confirm:secure' · What is 10 times 2?: 7 · Aborted. ``` -## Features - -- a `Bakefile`, which looks and feels like the good parts of a `Makefile`. -- except, you can write real bash code! -- Unlike `Makefile`, either tabs or 4 spaces can be used. ## Installation From 2ab914d7cabd56b8acd2f3945287989a7c15dea1 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:39:49 -0400 Subject: [PATCH 11/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c82db0b..3521aed 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Options: -h, --help Show this message and exit. ``` -### Features & Such +### Features 'n Things - a `Bakefile`, which looks and feels like the good parts of a `Makefile`. - except, you can write real bash code! From 6828d8a0853ad5eb0b816d4aa8ef7c2326334f81 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:41:58 -0400 Subject: [PATCH 12/22] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3521aed..f2bee16 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,11 @@ Options: ### Features 'n Things -- a `Bakefile`, which looks and feels like the good parts of a `Makefile`. -- except, you can write real bash code! +- A `Bakefile`, which looks and feels like the good parts of a `Makefile`. +- Except, you can write real bash code! +- Environment variables are explicitly passed or whitelisted (allowed), not inherinted from the parent shell. - Unlike `Makefile`, either tabs or 4 spaces can be used. +- Tasks can be run safely and reliably. Rest assured that scripts are executed from the project root (e.g. location of the `Bakefile`). ![bake icon](https://github.com/kennethreitz/bake/blob/master/ext/bake.png?raw=true) From 849efc521b7eae69136262c75ed8c9e1bcf89818 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:42:42 -0400 Subject: [PATCH 13/22] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f2bee16..a54c767 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ system-deps: brew install pipenv ``` -## `$ bake` +### `$ bake --list` ```console - format @@ -77,7 +77,7 @@ system-deps: ``` -## `$ bake --silent format` +### `$ bake --silent format` ```console All done! ✨ 🍰 ✨ @@ -85,7 +85,7 @@ All done! ✨ 🍰 ✨ ``` -## `$ bake install` +### `$ bake install` ```console · Executing 'node-deps': @@ -100,7 +100,7 @@ Installing dependencies from Pipfile.lock (2ee04c)… ``` -## `$ bake argv-example WHO=you 1 2 3` +### `$ bake argv-example WHO=you 1 2 3` ```console · Executing 'argv-example': @@ -111,7 +111,7 @@ HELLO, you · Done. ``` -## `$ bake dangerous-example` +### `$ bake dangerous-example` ```console · Executing '@confirm:secure' · From ddce6f3857fa0cabb4d75595abb66ec29e562776 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:43:29 -0400 Subject: [PATCH 14/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a54c767..d1b3153 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ☤ `bake`— a strangely familiar Bash task runner. +# ☿ `bake`— a strangely familiar Bash task runner. I love using `Makefile`s for one-off tasks in projects. The problem with doing this, is you can't use familiar bash–isms when doing so, as GNU Make doesn't use the familiar Bash syntax. This project seeks to bridge these works. From defb969f66613b8fd09117bb039e8662d838902a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:43:42 -0400 Subject: [PATCH 15/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d1b3153..bf07423 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # ☿ `bake`— a strangely familiar Bash task runner. -I love using `Makefile`s for one-off tasks in projects. The problem with doing this, is you can't use familiar bash–isms when doing so, as GNU Make doesn't use the familiar Bash syntax. This project seeks to bridge these works. +I love using `Makefile` for one-off tasks in projects. The problem with doing this, is you can't use familiar bash–isms when doing so, as GNU Make doesn't use the familiar Bash syntax. This project seeks to bridge these works. **WORK IN PROGRESS** From 7df07231d72494d2a84c63d02d53ed9a6cb0309b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:44:13 -0400 Subject: [PATCH 16/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf07423..07c62d7 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Options: - Unlike `Makefile`, either tabs or 4 spaces can be used. - Tasks can be run safely and reliably. Rest assured that scripts are executed from the project root (e.g. location of the `Bakefile`). -![bake icon](https://github.com/kennethreitz/bake/blob/master/ext/bake.png?raw=true) + ## `$ cat Bakefile` From b6ca398e92afba6afd8e7c535124c6f30546435d Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:45:13 -0400 Subject: [PATCH 18/22] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 666a5a2..4164b06 100644 --- a/README.md +++ b/README.md @@ -120,9 +120,9 @@ HELLO, you ``` -## Installation +## Simple Installation of `bake` (**MacOS**) -Install `bake` via (soon): +Coming soon! ```console $ brew install kennethreitz/-/bake --HEAD From 44a63260bcd240285b9cfbdae99b5214b81f4609 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:45:30 -0400 Subject: [PATCH 19/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4164b06..cd92b2a 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ HELLO, you ``` -## Simple Installation of `bake` (**MacOS**) +## Simple Installation of `bake` (**MacOS**): Coming soon! From 5ea07bb10ab62952fd093f3db270eba3c74f5487 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:46:45 -0400 Subject: [PATCH 20/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd92b2a..ff67fff 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Usage: bake [OPTIONS] [TASK] [ARGUMENTS]... bake — a strangely familiar Bash task–runner. Options: - -b, --bakefile TEXT + -b, --bakefile TEXT The Bakefile to use. -l, --list Lists available tasks from Bakefile. --allow TEXT Whitelist an environment variable for use. --yes Set medium–security prompts to yes. From ec0a476eb83575fc981641d1ae60e02342e671b6 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:47:23 -0400 Subject: [PATCH 21/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff67fff..cce0080 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Usage: bake [OPTIONS] [TASK] [ARGUMENTS]... bake — a strangely familiar Bash task–runner. Options: - -b, --bakefile TEXT The Bakefile to use. + -b, --bakefile PATH The Bakefile to use. -l, --list Lists available tasks from Bakefile. --allow TEXT Whitelist an environment variable for use. --yes Set medium–security prompts to yes. From 25e4a6efc28fa07261982fc8c85dfed3afdb88d1 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 22:48:40 -0400 Subject: [PATCH 22/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cce0080..4376718 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Options: -c, --continue Fail immediately, if any task fails. --insecure Use parent shell's environment variables. -s, --silent Reduce output. - -e, --environ-json TEXT environment variables, in JSON format. + -e, --environ-json TEXT Environment variables, in JSON format. -j, --json Output in JSON format (stdout). -h, --help Show this message and exit. ```