command
Version:
v0.1.26
Opens a new window with list of versions in this module.
Published: Mar 27, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Flag Cleanup (beta)
The go sdk supports automated code cleanup using the Flag Cleanup drone plugin. See here for detailed docs on usage of the plugin.
Run example
- View the example file and observe the if block using our feature flag
harnessappdemodarkmode
- Run the flag cleanup plugin. This can be done by running the make command
make flag_cleanup_demo
or by running the docker command directly from the root folder of this repository:
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
- Observe that the
if else
block has been removed from the code and the flag is now treated as globally true.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.