Skip to content

Commit

Permalink
Added a better default description when none is given in config.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofferahl committed Mar 19, 2021
1 parent 4eb3dfd commit 22c7d9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/centry/runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func TestMain(t *testing.T) {
g.Describe("default config output", func() {
g.It("should display the default program description", func() {
expected := `NAME:
name - A new cli application`
name - A declarative cli built using centry`
out := execQuiet("", "test/data/runtime_test_default_config.yaml")
test.AssertNoError(g, out.Error)
test.AssertStringContains(g, out.Stdout, expected)
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/config/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func readManifestFile(filename string) ([]byte, error) {
func parseManifestYaml(bs []byte) (*Manifest, error) {
m := Manifest{
Config: Config{
Description: "A declarative cli built using centry",
Log: LogConfig{
Level: defaultLogLevel,
},
Expand Down

0 comments on commit 22c7d9c

Please sign in to comment.