Categorygithub.com/launchdarkly/git-flag-parser
modulepackage
0.0.1-rc3
Repository: https://github.com/launchdarkly/git-flag-parser.git
Documentation: pkg.go.dev

# README

git-flag-parser

Command line program for generating flag code references.

This repository provides solutions for configuring LaunchDarkly code references with various systems out-of-the-box, as well as the ability to automate code reference discovery on your own infrastructure using the provided command line interface.

Configuration options

SystemStatus
GitHub ActionsSupported
BitBucket PipelinesPlanned
CircleCI WorkflowsPlanned
AWS Lambda jobsPlanned
Manually via CLISupported

Execution via CLI

The command line program may be run manually, and executed in an environment of your choosing. The following options are available to the program:

OptionDescriptionDefaultRequired
accessTokenLaunchDarkly personal access token with writer-level access, or access to the code-references custom role resourcen/ayes
baseUriSet the base URL of the LaunchDarkly server for this configuration. Only necessary if using a private instance of LaunchDarkly."https://app.launchdarkly.com"no
cloneEndpointIf provided, will clone the repo from this endpoint to the provided dir. If authentication is required, this endpoint should be authenticated. Supports the https protocol for git cloning. Example: https://username:[email protected]/username/repository.gitn/ano
contextLinesThe number of context lines to send to LaunchDarkly. If < 0, no source code will be sent to LaunchDarkly. If 0, only the line containing flag references will be sent. If > 0, will send that number of context lines above and below the flag reference. A maximum of 5 context lines may be provided.-1no
defaultBranchThe git default branch. The LaunchDarkly UI will default to display code references for this branch."master"no
dirPath to existing checkout of the git repo. If a cloneEndpoint is provided, this option is not required.only if cloneEndpoint is not set
excludeA regular expression defining the files and directories which the flag parser should exclude.no
projKeyA LaunchDarkly project key.yes
pushTimeThe time the git push was initiated, formatted as a unix millis timestamp. Used by the LaunchDarkly API to correctly order updates.yes
repoHeadThe HEAD or ref to retrieve code references from. Should be provided if the git push was initiated on a non-master branch."master"no
repoNameGit repo name. Will be displayed in LaunchDarklyyes
repoTypeThe repo service provider. Used to correctly categorize repositories in the LaunchDarkly UI. Acceptable values: github|bitbucket|custom"custom"no

# Packages

No description provided by the author