From 23655d2b9327f87a6e8a53dfabf68a4fc31e3c2b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 15 Sep 2019 13:14:26 -0400 Subject: [PATCH] marketing --- README.md | 7 +++++-- bake/{bashfile.py => bakefile.py} | 4 ++-- bake/cli.py | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) rename bake/{bashfile.py => bakefile.py} (99%) diff --git a/README.md b/README.md index 81a99e8..d8e8e89 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,13 @@ 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. -## Example `Bashfile` +## Example `Bakefile`, for use with `bake`: To be improved: ```make echo: - cat Bashfile + cat Bakefile format: black . @@ -25,6 +25,9 @@ system-deps: brew install pipenv ``` +## Features + +- a `Bakefile` Unlike `Makefile`, either tabs or 4 spaces can be used. ## Installation diff --git a/bake/bashfile.py b/bake/bakefile.py similarity index 99% rename from bake/bashfile.py rename to bake/bakefile.py index 55af52d..b3b785a 100644 --- a/bake/bashfile.py +++ b/bake/bakefile.py @@ -188,7 +188,7 @@ class TaskScript: pass -class Bashfile: +class Bakefile: def __init__(self, *, path): self.path = path self.environ = os.environ @@ -201,7 +201,7 @@ class Bashfile: self.chunks def __repr__(self): - return f"" + return f"" def __getitem__(self, key): return self.tasks[key] diff --git a/bake/cli.py b/bake/cli.py index 73579e6..2860916 100644 --- a/bake/cli.py +++ b/bake/cli.py @@ -2,7 +2,7 @@ import sys import click import crayons -from .bashfile import Bashfile +from .bakefile import Bakefile from .config import config SAFE_ENVIRONS = ["HOME"] @@ -104,7 +104,7 @@ def task( task = None if bashfile == "__BASHFILE__": - bashfile = Bashfile.find(root=".") + bashfile = Bakefile.find(root=".") if secure: for key in bashfile.environ: if key not in SAFE_ENVIRONS: