Skip to content

Commit 789042f

Browse files
Merge pull request #111 from harness/FFM-6796-update-code-cleanup-example
(FFM-6796) Code cleanup readme example
2 parents 490df1f + 0f565fe commit 789042f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/code_cleanup/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ The go sdk supports automated code cleanup using the Flag Cleanup drone plugin.
77

88
```make flag_cleanup_demo```
99

10-
or by running the docker command directly:
10+
or by running the docker command directly from the root folder of this repository:
1111

12-
```docker run -v ${CURDIR}:/go-sdk -e PLUGIN_DEBUG=true -e PLUGIN_PATH_TO_CODEBASE="/go-sdk/examples/code_cleanup" -e PLUGIN_PATH_TO_CONFIGURATIONS="/go-sdk/examples/code_cleanup/config" -e PLUGIN_LANGUAGE="go" -e PLUGIN_SUBSTITUTIONS="stale_flag_name=harnessappdemodarkmode,treated=true" harness/flag_cleanup:latest```
12+
```docker run -v ${PWD}:/go-sdk -e PLUGIN_DEBUG=true -e PLUGIN_PATH_TO_CODEBASE="/go-sdk/examples/code_cleanup" -e PLUGIN_PATH_TO_CONFIGURATIONS="/go-sdk/examples/code_cleanup/config" -e PLUGIN_LANGUAGE="go" -e PLUGIN_SUBSTITUTIONS="stale_flag_name=harnessappdemodarkmode,treated=true" harness/flag_cleanup:latest```
1313

1414
3. Observe that the `if else` block has been removed from the code and the flag is now treated as globally true.

0 commit comments

Comments
 (0)