Skip to content

Commit 6b795db

Browse files
committed
Merge branch 'release'
2 parents fcb299c + f33b0bc commit 6b795db

File tree

6 files changed

+6270
-30
lines changed

6 files changed

+6270
-30
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33

44
All notable changes to this project will be documented in this file.
55

6-
## Version 0.2.0
6+
## Version 0.2.1 - 2024-05-16
7+
8+
### Fixed
9+
10+
- Documentation fixes.
11+
12+
## Version 0.2.0 - 2024-05-16
713

814
### Fixed
915

README.md

+19-20
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,22 @@ Build tool to containerize cloud applications.
1616
## Usage
1717

1818
```bash
19-
Usage: ctz <filename> <options>
20-
21-
Options:
22-
23-
-p, --push pushes image to specified repository
24-
-l, --log logs the standard output
25-
-h, --help get detailed usage information
26-
```
27-
28-
## Examples
29-
30-
```bash
31-
ctz build.yaml
32-
ctz build.yaml --log
33-
ctz build.yaml -l
34-
ctz build.yaml --push
35-
ctz build.yaml -p --log
19+
USAGE
20+
ctz = ctz help
21+
ctz <filename> <options> = builds images of all modules and pushes them to remote repository
22+
23+
OPTIONS
24+
-l | --log logs the standard output in the console
25+
-p | --push pushes the images to specified repository
26+
-h | --help get detailed usage information
27+
-v | --version get version of the package
28+
29+
EXAMPLES
30+
ctz build.yaml
31+
ctz build.yaml --log
32+
ctz build.yaml -l
33+
ctz build.yaml --push
34+
ctz build.yaml -p --log
3635
```
3736

3837
## Configuration
@@ -92,9 +91,9 @@ There are three ways to configure how to containerize a module:
9291
| Keyword | Parsed to |
9392
|------------------------------------|-----------------------------------------------------------|
9493
| *builder-jammy-base* | paketobuildpacks/builder-jammy-base |
95-
| *builder-jammy-buildpackless-base* | paketobuildpacks/builder-jammy-full |
96-
| *builder-jammy-full* | paketobuildpacks/builder-jammy-base |
97-
| *builder-jammy-buildpackless-full* | paketobuildpacks/builder-jammy-full |
94+
| *builder-jammy-buildpackless-base* | paketobuildpacks/builder-jammy-buildpackless-base |
95+
| *builder-jammy-full* | paketobuildpacks/builder-jammy-full |
96+
| *builder-jammy-buildpackless-full* | paketobuildpacks/builder-jammy-buildpackless-full |
9897

9998
</br>
10099

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const { processModule } = require('./lib/execute')
55

66
const shortcuts = {
77
h: "--help",
8-
v: "--version"
8+
v: 'version', '-v':'version', '--version':'version'
99
}
1010

11-
const cmd = process.argv[2]
11+
let cmd = process.argv[2]
1212
if (cmd in shortcuts) {
1313
cmd = shortcuts[cmd]
1414
}

lib/constants.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ const font = {
88
const commandsDescription = `${font.bold} USAGE
99
${font.bold} ctz = ${font.reset}ctz help
1010
${font.bold} ctz <filename> <options> = ${font.reset}builds images of all modules and pushes them to remote repository
11-
12-
${font.bold} COMMANDS
13-
${font.bold} -h | --help ${font.reset}get detailed usage information
14-
${font.bold} -v | --version ${font.reset}get version of the package
1511
1612
${font.bold} OPTIONS
17-
${font.bold} -l | --log ${font.reset}logs the standard output in the console
18-
${font.bold} -p | --push ${font.reset}pushes the images to specified repository
13+
${font.bold} -l | --log ${font.reset}logs the standard output in the console
14+
${font.bold} -p | --push ${font.reset}pushes the images to specified repository
15+
${font.bold} -h | --help ${font.reset}get detailed usage information
16+
${font.bold} -v | --version ${font.reset}get version of the package
1917
2018
${font.bold} EXAMPLES${font.reset}
2119
ctz build.yaml

0 commit comments

Comments
 (0)