Skip to content

Commit 6e9b22d

Browse files
committed
refactor: rename init::init() to init::project()
1 parent 5b1deb5 commit 6e9b22d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Unreleased
44

55
- Add `--init [dir]` option to get you started quickly
6-
- Init with custom directory updates `.env` with `BASHUNIT_BOOTSTRAP`, commenting any previous value
6+
- Init with custom directory updates `.env` with `BASHUNIT_BOOTSTRAP`
77
- Fix process time always shows as 0 ms
88
- Fixed terminal width detection first tput and fall back stty
99
- Refactor clock optimizing the implementation used to get the time

bashunit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ while [[ $# -gt 0 ]]; do
104104
;;
105105
--init)
106106
if [[ -n ${2:-} && ${2:0:1} != "-" ]]; then
107-
init::init "$2"
107+
init::project "$2"
108108
shift
109109
else
110-
init::init
110+
init::project
111111
fi
112112
trap '' EXIT && exit 0
113113
;;

src/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
function init::init() {
3+
function init::project() {
44
local tests_dir="${1:-$BASHUNIT_DEFAULT_PATH}"
55
mkdir -p "$tests_dir"
66

0 commit comments

Comments
 (0)