Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,46 @@ default_install_hook_types:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
rev: "v6.0.0"
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-added-large-files
- repo: https://github.com/compilerla/conventional-pre-commit
rev: "v4.0.0"
rev: "v4.3.0"
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [--strict]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.0
rev: v8.29.0
hooks:
- id: gitleaks
- repo: https://github.com/fsfe/reuse-tool
rev: "v5.0.2"
rev: "v6.2.0"
hooks:
- id: reuse
stages: [pre-commit]
- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.5.2"
rev: "v3.6.2"
hooks:
- id: prettier
stages: [pre-commit]
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: "v0.17.2"
rev: "v0.18.1"
hooks:
- id: markdownlint-cli2
stages: [pre-commit]
- repo: https://github.com/adrienverge/yamllint.git
rev: "v1.35.1"
rev: "v1.37.1"
hooks:
- id: yamllint
stages: [pre-commit]
args: [--strict]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.31.2"
rev: "0.34.1"
hooks:
- id: check-github-workflows
stages: [pre-commit]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ To create a unit, use `new`:
TFT_UNIT=my-app task tft:new
```

To create a unit as a copy of an existing unit, use `clone`. Specify the existing unit with `TFT_SOURCE_UNIT` and the name of the new unit with `TFT_UNIT`, like this:
To create a unit as a copy of an existing unit, use `copy`. Specify the existing unit with `TFT_SOURCE_UNIT` and the name of the new unit with `TFT_UNIT`, like this:

```shell
TFT_SOURCE_UNIT=my-first-app TFT_UNIT=my-new-app task tft:clone
TFT_SOURCE_UNIT=my-first-app TFT_UNIT=my-new-app task tft:copy
```

Use `TFT_CONTEXT` and `TFT_UNIT` to create a deployment of the unit with the configuration from the specified context:
Expand Down Expand Up @@ -386,7 +386,7 @@ Set these variables to override the defaults:
| tft:apply | _terraform apply_ for a unit\* |
| tft:check-fmt | Checks whether _terraform fmt_ would change the code for a unit |
| tft:clean | Remove the generated files for a unit |
| tft:clone | Create a new unit as a copy of an existing unit |
| tft:copy | Create a new unit as a copy of an existing unit |
| tft:console | _terraform console_ for a unit\* |
| tft:context | An alias for `tft:context:list`. |
| tft:destroy | _terraform apply -destroy_ for a unit\* |
Expand Down
2 changes: 1 addition & 1 deletion template/tasks/tft/Taskfile.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ tasks:
requires:
vars: [TFT_UNIT]

clone:
copy:
desc: Create a new TF unit as a copy of an existing unit
cmds:
- "mkdir {{.TFT_UNITS_DIR}}/{{.TFT_UNIT}}"
Expand Down
Loading