Skip to content

Commit 05da8b0

Browse files
authored
Merge pull request #463 from Unpackerr/dn2_rename
rename some files
2 parents 16ef713 + c156a9d commit 05da8b0

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

init/config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Unpackerr Configuration Generator
22

3-
This folder contains a [yaml](conf-builder.yml) file that describes the entire Unpackerr configuration.
3+
This folder contains a [yaml](definitions.yml) file that describes the entire Unpackerr configuration.
44
This description includes all variables, their defaults, their recommendations, comments and documentation.
55

66
## Builders
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
"strings"
99
)
1010

11+
/* This file creates an example compose file: docker-compose.yml */
12+
1113
//nolint:lll
1214
const (
1315
space = " "
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import (
1313
"github.com/BurntSushi/toml"
1414
)
1515

16+
/* This file creates a folder full of docusaurus markdown files for https://unpackerr.zip */
17+
1618
func printDocusaurus(config *Config, output string) {
1719
// Generate index file first.
1820
if err := makeGenerated(config, output); err != nil {

init/config/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate go run . --config ../../examples/unpackerr.conf.example --compose ../../examples/docker-compose.yml --type config,compose --file conf-builder.yml
1+
//go:generate go run . --config ../../examples/unpackerr.conf.example --compose ../../examples/docker-compose.yml --type config,compose --file definitions.yml
22

33
package main
44

@@ -27,7 +27,7 @@ const (
2727
opTimeout = 6 * time.Second
2828
)
2929

30-
//go:embed conf-builder.yml
30+
//go:embed definitions.yml
3131
var confBuilder []byte
3232

3333
type section string
@@ -88,7 +88,7 @@ func main() {
8888
defer file.Close()
8989

9090
config := &Config{}
91-
// Decode conf-builder file into Go data structure.
91+
// Decode definitions file into Go data structure.
9292
if err = yaml.NewDecoder(file).Decode(config); err != nil {
9393
log.Fatalln(err) //nolint:gocritic
9494
}
@@ -127,9 +127,9 @@ func parseFlags() *flags {
127127
flag.StringVar(&flags.Compose, "compose", exampleCompose,
128128
"Choose a filename for the generated docker compose service.")
129129
flag.StringVar(&flags.Docs, "docs", outputDir,
130-
"Choose folder for generated documentation. ")
130+
"Choose folder for generated documentation.")
131131
flag.StringVarP(&flags.File, "file", "f", "internal",
132-
"URL or filepath for conf-builder.yml, internal uses the compiled-in file")
132+
"URL or filepath for definitions.yml, 'internal' uses the compiled-in file.")
133133
flag.Parse()
134134

135135
return &flags

0 commit comments

Comments
 (0)