From 465c1c066542c18ac5f841d134ccfa99d8c8af71 Mon Sep 17 00:00:00 2001 From: "Soren I. Bjornstad" Date: Mon, 20 Sep 2021 12:16:38 -0500 Subject: [PATCH] style 'tzk' as lowercase --- tzk/__main__.py | 8 ++++---- tzk/builders.py | 2 +- tzk/config.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tzk/__main__.py b/tzk/__main__.py index 971fff0..eb64887 100644 --- a/tzk/__main__.py +++ b/tzk/__main__.py @@ -66,7 +66,7 @@ class CommitCommand(CliCommand): current_branch = git.read("rev-parse", "--abbrev-ref", "HEAD") if current_branch != cm().commit_require_branch: fail(f"You are on the '{current_branch}' branch, " - f"but your TZK configuration requires you to be on the " + f"but your tzk configuration requires you to be on the " f"'{cm().commit_require_branch}' branch to commit.") git.exec("add", "-A") @@ -119,7 +119,7 @@ class ListenCommand(CliCommand): class InitCommand(CliCommand): cmd = "init" - help = "Set up a new TZK directory." + help = "Set up a new tzk directory." @classmethod def setup_arguments(cls, parser: argparse.ArgumentParser) -> None: @@ -147,7 +147,7 @@ class InitCommand(CliCommand): if os.path.exists("package.json"): fail("A 'package.json' file already exists in the current directory. " - "Perhaps you've already initialized a TZK repository here?") + "Perhaps you've already initialized a tzk repository here?") def execute(self, args: argparse.Namespace) -> None: self._precheck() @@ -172,7 +172,7 @@ class BuildCommand(CliCommand): cmd = "build" help = ("Build another wiki or derivative product, " "such as a public version of the wiki, " - "from this TZK repository.") + "from this tzk repository.") @classmethod def setup_arguments(cls, parser: argparse.ArgumentParser) -> None: diff --git a/tzk/builders.py b/tzk/builders.py index 069e1d0..2171210 100644 --- a/tzk/builders.py +++ b/tzk/builders.py @@ -34,7 +34,7 @@ def tzk_builder(func): initially passed wrapped up in it. Calling that lambda has the effect of executing the builder. - We use this in TZK to allow the user to use function calls in her config + We use this in tzk to allow the user to use function calls in her config to define the build steps, while not requiring her to write a bunch of ugly and confusing lambda:'s in the config. The functions that will be called are prepared during the config and executed later. diff --git a/tzk/config.py b/tzk/config.py index 2f0a629..e11b859 100644 --- a/tzk/config.py +++ b/tzk/config.py @@ -1,5 +1,5 @@ """ -config.py - read and manage the TZK config file +config.py - read and manage the tzk config file """ import datetime import functools