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: