~bayindirh/nudge

086c4b056871f2949b18e4d55a00799f493ffa35 — Hakan Bayindir 7 months ago 4a52759
- fix: Correct a debug log line to print prettier.
2 files changed, 5 insertions(+), 2 deletions(-)

M CHANGELOG.md
M src/nudge.go
M CHANGELOG.md => CHANGELOG.md +4 -0
@@ 2,6 2,10 @@

**Note:** Please add newest entries on top. Use ISO date format YYYY-MM-DD and markdown formatting.

## 2023-07-26

- fix: Correct a small debug log line to print prettier.

## 2023-07-25

- refactor: Rewrite `applyFlags` function to set only provided flags.

M src/nudge.go => src/nudge.go +1 -2
@@ 249,8 249,7 @@ func applyFlags(setFlags *[]string, flagStorage *FlagStorage, runtimeConfigurati
	// This is left as a check, to see whether we can approach flag module globally.
	logger.Debugf("Flag parse status is %s.", flag.Parsed())

	// FIXME: Prettify this output.
	logger.Debugf("The set flags are %s.", setFlags)
	logger.Debugf("The set flags are %s.", *setFlags)

	for _, flagValue := range *setFlags {
		logger.Debugf("Working on flag %s.", flagValue)