SFDX Plugin from Bob Buzzard
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
.images
.vscode
bin
messages
src
test
.editorconfig
.gitattributes
.gitignore
LICENSE
README.md
appveyor.yml
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

bobbuzz

SFDX plugin from Bob Buzzard

Version Downloads/week License

Installation

sfdx plugins:install bobbuzz

Commands

sfdx bbuzz:gitstamp

Writes the current Git commit id to a hierarchical custom setting. The custom setting information defined in the sfdx-project.json file as follows:

"plugins": {
    "bb": {
          "gitSetting" : {
              "settingName" : "Git_Info__c",
              "commitIdField" : "Commit_Id__c"
          }
    }
}

where settingName defines the name of the custom setting (default is Git_Info__c) and commitIdField defines the custom setting field to write the commit id to (default is Commit_Id__c)

USAGE
  $ sfdx bbuzz:gitstamp

OPTIONS
  -u, --targetusername=targetusername             username or alias for the target org; overrides default target org
  --apiversion=apiversion                         override the api version used for api requests made by this command
  --json                                          format output as json
  --loglevel=(trace|debug|info|warn|error|fatal)  logging level for this command invocation

EXAMPLE
  $ sfdx bbuzz:gitstamp --targetusername myOrg@example.com
     Stamped the Git commit id in the org

See code: src/commands/bbuzz/gitstamp.ts

License

MIT