2c1880cf5070640b04f46303d35b68a107be3e2a

Author
Wade Wegner <wade.wegner@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

sfdx: add plugin and completion for sfdx (#6540)

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/sfdx/README.md b/plugins/sfdx/README.md
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..259c17fbec76c27dc9e0b0c076625d1566e8dd23
  4--- /dev/null
  5+++ b/plugins/sfdx/README.md
  6@@ -0,0 +1,11 @@
  7+# sfdx plugin
  8+
  9+This plugin provides autocompletion for the [Salesforce DX](https://developer.salesforce.com/tools/sfdxcli) CLI.
 10+
 11+To use it, add `sfdx` to the plugins array in your zshrc file:
 12+
 13+```zsh
 14+plugins=(... sfdx)
 15+```
 16+
 17+Original repository: https://github.com/wadewegner/salesforce-cli-zsh-completion
 18diff --git a/plugins/sfdx/_sfdx b/plugins/sfdx/_sfdx
 19new file mode 100644
 20index 0000000000000000000000000000000000000000..42ee55970299bcf97e2b96f6a248a6afbf4e47ca
 21--- /dev/null
 22+++ b/plugins/sfdx/_sfdx
 23@@ -0,0 +1,1110 @@
 24+#compdef sfdx
 25+
 26+# DESCRIPTION: Zsh completion script for the Salesforce CLI
 27+# AUTHOR: Wade Wegner (@WadeWegner)
 28+# REPO: https://github.com/wadewegner/salesforce-cli-zsh-completion
 29+# LICENSE: https://github.com/wadewegner/salesforce-cli-zsh-completion/blob/master/LICENSE
 30+
 31+local -a _1st_arguments
 32+
 33+_1st_arguments=(
 34+	"force\:alias\:list":"list username aliases for the Salesforce CLI"
 35+	"force\:alias\:set":"set username aliases for the Salesforce CLI"
 36+	"force\:apex\:class\:create":"create an Apex class"
 37+	"force\:apex\:execute":"execute anonymous Apex code"
 38+	"force\:apex\:log\:get":"fetch a debug log"
 39+	"force\:apex\:log\:list":"list debug logs"
 40+	"force\:apex\:log\:tail":"start debug logging and display logs"
 41+	"force\:apex\:test\:report":"display test results"
 42+	"force\:apex\:test\:run":"invoke Apex tests"
 43+	"force\:apex\:trigger\:create":"create an Apex trigger"
 44+	"force\:auth\:jwt\:grant":"authorize an org using the JWT flow"
 45+	"force\:auth\:logout":"log out from authorized orgs"
 46+	"force\:auth\:sfdxurl\:store":"authorize an org using an SFDX auth URL"
 47+	"force\:auth\:web\:login":"authorize an org using the web login flow"
 48+	"force\:config\:get":"get config var values for given names"
 49+	"force\:config\:list":"list config vars for the Salesforce CLI"
 50+	"force\:config\:set":"set config vars for the Salesforce CLI"
 51+	"force\:data\:bulk\:delete":"bulk delete records from a csv file"
 52+	"force\:data\:bulk\:status":"view the status of a bulk data load job or batch"
 53+	"force\:data\:bulk\:upsert":"bulk upsert records from a CSV file"
 54+	"force\:data\:record\:create":"create a record"
 55+	"force\:data\:record\:delete":"delete a record"
 56+	"force\:data\:record\:get":"view a record"
 57+	"force\:data\:record\:update":"update a record"
 58+	"force\:data\:soql\:query":"execute a SOQL query"
 59+	"force\:data\:tree\:export":"export data from an org into sObject tree format for force:data:tree:import consumption"
 60+	"force\:data\:tree\:import":"import data into an org using SObject Tree Save API"
 61+	"force\:doc\:commands\:display":"display help for force commands"
 62+	"force\:doc\:commands\:list":"list the force commands"
 63+	"force\:lightning\:app\:create":"create a Lightning app"
 64+	"force\:lightning\:component\:create":"create a bundle for an Aura component or a Lightning web component"
 65+	"force\:lightning\:event\:create":"create a Lightning event"
 66+	"force\:lightning\:interface\:create":"create a Lightning interface"
 67+	"force\:lightning\:lint":"analyse (lint) Lightning component code"
 68+	"force\:lightning\:test\:create":"create a Lightning test"
 69+	"force\:lightning\:test\:install":"install Lightning Testing Service unmanaged package in your org"
 70+	"force\:lightning\:test\:run":"invoke Aura component tests"
 71+	"force\:limits\:api\:display":"display current org’s limits"
 72+	"force\:mdapi\:convert":"convert metadata from the Metadata API format into the source format"
 73+	"force\:mdapi\:deploy":"deploy metadata to an org using Metadata API"
 74+	"force\:mdapi\:deploy\:cancel":"cancel a metadata deployment"
 75+	"force\:mdapi\:deploy\:report":"check the status of a metadata deployment"
 76+	"force\:mdapi\:retrieve":"retrieve metadata from an org using Metadata API"
 77+	"force\:mdapi\:retrieve\:report":"check the status of a metadata retrieval"
 78+	"force\:org\:create":"create a scratch org"
 79+	"force\:org\:delete":"mark a scratch org for deletion"
 80+	"force\:org\:display":"get org description"
 81+	"force\:org\:list":"list all orgs you’ve created or authenticated to"
 82+	"force\:org\:open":"open an org in your browser"
 83+	"force\:org\:shape\:create":"create a snapshot of org edition, features, and licenses"
 84+	"force\:org\:shape\:delete":"delete all org shapes for a target org"
 85+	"force\:org\:shape\:list":"list all org shapes you’ve created"
 86+	"force\:org\:snapshot\:create":"snapshot a scratch org"
 87+	"force\:org\:snapshot\:delete":"delete a scratch org snapshot"
 88+	"force\:org\:snapshot\:get":"get details about a scratch org snapshot"
 89+	"force\:org\:snapshot\:list":"list scratch org snapshots"
 90+	"force\:package1\:version\:create":"create a first-generation package version in the release org"
 91+	"force\:package1\:version\:create\:get":"retrieve the status of a package version creation request"
 92+	"force\:package1\:version\:display":"display details about a first-generation package version"
 93+	"force\:package1\:version\:list":"list package versions for the specified first-generation package or for the org"
 94+	"force\:package\:create":"create a package"
 95+	"force\:package\:hammertest\:list":"list the statuses of running and completed hammer tests"
 96+	"force\:package\:hammertest\:report":"display the status or results of a hammer test"
 97+	"force\:package\:hammertest\:run":"run ISV Hammer"
 98+	"force\:package\:install":"install a package in the target org"
 99+	"force\:package\:install\:report":"retrieve the status of a package installation request"
100+	"force\:package\:installed\:list":"list the org’s installed packages"
101+	"force\:package\:list":"list all packages in the Dev Hub org"
102+	"force\:package\:uninstall":"uninstall a second-generation package from the target org"
103+	"force\:package\:uninstall\:report":"retrieve status of package uninstall request"
104+	"force\:package\:update":"update package details"
105+	"force\:package\:version\:create":"create a package version"
106+	"force\:package\:version\:create\:list":"list package version creation requests"
107+	"force\:package\:version\:create\:report":"retrieve details about a package version creation request"
108+	"force\:package\:version\:list":"list all package versions in the Dev Hub org"
109+	"force\:package\:version\:promote":"promote a package version to released"
110+	"force\:package\:version\:report":"retrieve details about a package version in the Dev Hub org"
111+	"force\:package\:version\:update":"update a package version"
112+	"force\:project\:create":"create a new SFDX project"
113+	"force\:project\:upgrade":"update project config files to the latest format"
114+	"force\:schema\:sobject\:describe":"describe an object"
115+	"force\:schema\:sobject\:list":"list all objects of a specified category"
116+	"force\:source\:convert":"convert source into Metadata API format"
117+	"force\:source\:delete":"delete source from your project and from a non-source-tracked org"
118+	"force\:source\:deploy":"deploy source to a non-source-tracked org"
119+	"force\:source\:open":"edit a Lightning Page with Lightning App Builder"
120+	"force\:source\:pull":"pull source from the scratch org to the project"
121+	"force\:source\:push":"push source to a scratch org from the project"
122+	"force\:source\:retrieve":"retrieve source from a non-source-tracked org"