Skip to content

Commit 52d4582

Browse files
chore: add autocomplete options to deploy start --metadata
1 parent a9c5626 commit 52d4582

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/commands/project/deploy/start.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
import { EnvironmentVariable, Lifecycle, Messages, OrgConfigProperties, SfError } from '@salesforce/core';
17-
import { type DeployVersionData, DeployZipData } from '@salesforce/source-deploy-retrieve';
17+
import { type DeployVersionData, DeployZipData, RegistryAccess } from '@salesforce/source-deploy-retrieve';
1818
import { Duration } from '@salesforce/kit';
1919
import { SfCommand, toHelpSection, Flags } from '@salesforce/sf-plugins-core';
2020
import { SourceConflictError } from '@salesforce/source-tracking';
@@ -97,6 +97,9 @@ export default class DeployMetadata extends SfCommand<DeployResultJson> {
9797
multiple: true,
9898
exclusive: exclusiveFlags.filter((f) => f !== 'metadata'),
9999
helpGroup: sourceFormatFlags,
100+
completion: {
101+
options: () => Promise.resolve(Object.keys(new RegistryAccess().getRegistry().types)),
102+
},
100103
}),
101104
'metadata-dir': fileOrDirFlag({
102105
summary: messages.getMessage('flags.metadata-dir.summary'),

0 commit comments

Comments
 (0)