@sfship/plugin-ship 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/LICENSE.txt +206 -0
  2. package/README.md +164 -0
  3. package/lib/commands/ship/flow/eject.d.ts +15 -0
  4. package/lib/commands/ship/flow/eject.js +55 -0
  5. package/lib/commands/ship/flow/eject.js.map +1 -0
  6. package/lib/commands/ship/flow/info.d.ts +15 -0
  7. package/lib/commands/ship/flow/info.js +86 -0
  8. package/lib/commands/ship/flow/info.js.map +1 -0
  9. package/lib/commands/ship/flow/list.d.ts +12 -0
  10. package/lib/commands/ship/flow/list.js +51 -0
  11. package/lib/commands/ship/flow/list.js.map +1 -0
  12. package/lib/commands/ship/flow/run.d.ts +16 -0
  13. package/lib/commands/ship/flow/run.js +90 -0
  14. package/lib/commands/ship/flow/run.js.map +1 -0
  15. package/lib/commands/ship/project/init.d.ts +13 -0
  16. package/lib/commands/ship/project/init.js +81 -0
  17. package/lib/commands/ship/project/init.js.map +1 -0
  18. package/lib/commands/ship/service/connect/github.d.ts +12 -0
  19. package/lib/commands/ship/service/connect/github.js +47 -0
  20. package/lib/commands/ship/service/connect/github.js.map +1 -0
  21. package/lib/commands/ship/service/delete.d.ts +13 -0
  22. package/lib/commands/ship/service/delete.js +44 -0
  23. package/lib/commands/ship/service/delete.js.map +1 -0
  24. package/lib/commands/ship/service/info.d.ts +13 -0
  25. package/lib/commands/ship/service/info.js +51 -0
  26. package/lib/commands/ship/service/info.js.map +1 -0
  27. package/lib/commands/ship/service/list.d.ts +9 -0
  28. package/lib/commands/ship/service/list.js +55 -0
  29. package/lib/commands/ship/service/list.js.map +1 -0
  30. package/lib/commands/ship/task/info.d.ts +15 -0
  31. package/lib/commands/ship/task/info.js +75 -0
  32. package/lib/commands/ship/task/info.js.map +1 -0
  33. package/lib/commands/ship/task/list.d.ts +12 -0
  34. package/lib/commands/ship/task/list.js +45 -0
  35. package/lib/commands/ship/task/list.js.map +1 -0
  36. package/lib/commands/ship/task/run.d.ts +16 -0
  37. package/lib/commands/ship/task/run.js +72 -0
  38. package/lib/commands/ship/task/run.js.map +1 -0
  39. package/lib/core/config.dependency.schema.d.ts +24 -0
  40. package/lib/core/config.dependency.schema.js +34 -0
  41. package/lib/core/config.dependency.schema.js.map +1 -0
  42. package/lib/core/config.loader.d.ts +23 -0
  43. package/lib/core/config.loader.js +62 -0
  44. package/lib/core/config.loader.js.map +1 -0
  45. package/lib/core/config.ship.schema.d.ts +174 -0
  46. package/lib/core/config.ship.schema.js +67 -0
  47. package/lib/core/config.ship.schema.js.map +1 -0
  48. package/lib/core/error.d.ts +29 -0
  49. package/lib/core/error.js +59 -0
  50. package/lib/core/error.js.map +1 -0
  51. package/lib/core/file.d.ts +34 -0
  52. package/lib/core/file.js +123 -0
  53. package/lib/core/file.js.map +1 -0
  54. package/lib/core/flow.context.d.ts +22 -0
  55. package/lib/core/flow.context.js +4 -0
  56. package/lib/core/flow.context.js.map +1 -0
  57. package/lib/core/flow.definition.schema.d.ts +60 -0
  58. package/lib/core/flow.definition.schema.js +56 -0
  59. package/lib/core/flow.definition.schema.js.map +1 -0
  60. package/lib/core/flow.interpolate.d.ts +21 -0
  61. package/lib/core/flow.interpolate.js +64 -0
  62. package/lib/core/flow.interpolate.js.map +1 -0
  63. package/lib/core/flow.registry.d.ts +32 -0
  64. package/lib/core/flow.registry.js +99 -0
  65. package/lib/core/flow.registry.js.map +1 -0
  66. package/lib/core/flow.renderer.d.ts +51 -0
  67. package/lib/core/flow.renderer.js +137 -0
  68. package/lib/core/flow.renderer.js.map +1 -0
  69. package/lib/core/flow.runner.d.ts +13 -0
  70. package/lib/core/flow.runner.js +133 -0
  71. package/lib/core/flow.runner.js.map +1 -0
  72. package/lib/core/flow.store.d.ts +24 -0
  73. package/lib/core/flow.store.js +57 -0
  74. package/lib/core/flow.store.js.map +1 -0
  75. package/lib/core/flow.view.d.ts +20 -0
  76. package/lib/core/flow.view.js +77 -0
  77. package/lib/core/flow.view.js.map +1 -0
  78. package/lib/core/flows/create/package.yml +18 -0
  79. package/lib/core/flows/dependencies/lock.yml +4 -0
  80. package/lib/core/flows/deploy/beta.yml +38 -0
  81. package/lib/core/flows/deploy/dev.yml +26 -0
  82. package/lib/core/flows/deploy/feature.yml +56 -0
  83. package/lib/core/flows/deploy/qa.yml +51 -0
  84. package/lib/core/flows/deploy/regression.yml +60 -0
  85. package/lib/core/flows/deploy/release.yml +38 -0
  86. package/lib/core/flows/release/beta.yml +25 -0
  87. package/lib/core/flows/release/production.yml +16 -0
  88. package/lib/core/org.registry.d.ts +45 -0
  89. package/lib/core/org.registry.js +76 -0
  90. package/lib/core/org.registry.js.map +1 -0
  91. package/lib/core/org.scratch.schema.d.ts +44 -0
  92. package/lib/core/org.scratch.schema.js +62 -0
  93. package/lib/core/org.scratch.schema.js.map +1 -0
  94. package/lib/core/package.dependencies.d.ts +45 -0
  95. package/lib/core/package.dependencies.js +158 -0
  96. package/lib/core/package.dependencies.js.map +1 -0
  97. package/lib/core/package.installer.d.ts +13 -0
  98. package/lib/core/package.installer.js +60 -0
  99. package/lib/core/package.installer.js.map +1 -0
  100. package/lib/core/package.metadata.d.ts +6 -0
  101. package/lib/core/package.metadata.js +33 -0
  102. package/lib/core/package.metadata.js.map +1 -0
  103. package/lib/core/package.namespace.d.ts +10 -0
  104. package/lib/core/package.namespace.js +40 -0
  105. package/lib/core/package.namespace.js.map +1 -0
  106. package/lib/core/package.version.d.ts +42 -0
  107. package/lib/core/package.version.js +60 -0
  108. package/lib/core/package.version.js.map +1 -0
  109. package/lib/core/project.init.d.ts +11 -0
  110. package/lib/core/project.init.js +121 -0
  111. package/lib/core/project.init.js.map +1 -0
  112. package/lib/core/service.d.ts +45 -0
  113. package/lib/core/service.github.d.ts +98 -0
  114. package/lib/core/service.github.js +270 -0
  115. package/lib/core/service.github.js.map +1 -0
  116. package/lib/core/service.js +91 -0
  117. package/lib/core/service.js.map +1 -0
  118. package/lib/core/sfdx-project.d.ts +25 -0
  119. package/lib/core/sfdx-project.js +39 -0
  120. package/lib/core/sfdx-project.js.map +1 -0
  121. package/lib/core/stdout.d.ts +1 -0
  122. package/lib/core/stdout.js +27 -0
  123. package/lib/core/stdout.js.map +1 -0
  124. package/lib/core/task.definition.schema.d.ts +69 -0
  125. package/lib/core/task.definition.schema.js +33 -0
  126. package/lib/core/task.definition.schema.js.map +1 -0
  127. package/lib/core/task.output.d.ts +29 -0
  128. package/lib/core/task.output.js +39 -0
  129. package/lib/core/task.output.js.map +1 -0
  130. package/lib/core/task.param.d.ts +30 -0
  131. package/lib/core/task.param.js +141 -0
  132. package/lib/core/task.param.js.map +1 -0
  133. package/lib/core/task.param.schema.d.ts +22 -0
  134. package/lib/core/task.param.schema.js +26 -0
  135. package/lib/core/task.param.schema.js.map +1 -0
  136. package/lib/core/task.registry.d.ts +22 -0
  137. package/lib/core/task.registry.js +85 -0
  138. package/lib/core/task.registry.js.map +1 -0
  139. package/lib/core/task.view.d.ts +10 -0
  140. package/lib/core/task.view.js +25 -0
  141. package/lib/core/task.view.js.map +1 -0
  142. package/lib/core/tasks/apex/run/test.d.ts +25 -0
  143. package/lib/core/tasks/apex/run/test.js +85 -0
  144. package/lib/core/tasks/apex/run/test.js.map +1 -0
  145. package/lib/core/tasks/data/import/tree.d.ts +12 -0
  146. package/lib/core/tasks/data/import/tree.js +61 -0
  147. package/lib/core/tasks/data/import/tree.js.map +1 -0
  148. package/lib/core/tasks/git/release/create.d.ts +42 -0
  149. package/lib/core/tasks/git/release/create.js +197 -0
  150. package/lib/core/tasks/git/release/create.js.map +1 -0
  151. package/lib/core/tasks/git/release/fetch.d.ts +24 -0
  152. package/lib/core/tasks/git/release/fetch.js +93 -0
  153. package/lib/core/tasks/git/release/fetch.js.map +1 -0
  154. package/lib/core/tasks/git/repo/info.d.ts +12 -0
  155. package/lib/core/tasks/git/repo/info.js +47 -0
  156. package/lib/core/tasks/git/repo/info.js.map +1 -0
  157. package/lib/core/tasks/metadata/deploy.d.ts +12 -0
  158. package/lib/core/tasks/metadata/deploy.js +39 -0
  159. package/lib/core/tasks/metadata/deploy.js.map +1 -0
  160. package/lib/core/tasks/org/assign/permsets.d.ts +12 -0
  161. package/lib/core/tasks/org/assign/permsets.js +54 -0
  162. package/lib/core/tasks/org/assign/permsets.js.map +1 -0
  163. package/lib/core/tasks/org/create/scratch.d.ts +36 -0
  164. package/lib/core/tasks/org/create/scratch.js +127 -0
  165. package/lib/core/tasks/org/create/scratch.js.map +1 -0
  166. package/lib/core/tasks/org/delete/scratch.d.ts +12 -0
  167. package/lib/core/tasks/org/delete/scratch.js +10 -0
  168. package/lib/core/tasks/org/delete/scratch.js.map +1 -0
  169. package/lib/core/tasks/package/create.d.ts +36 -0
  170. package/lib/core/tasks/package/create.js +93 -0
  171. package/lib/core/tasks/package/create.js.map +1 -0
  172. package/lib/core/tasks/package/dependencies/lock.d.ts +6 -0
  173. package/lib/core/tasks/package/dependencies/lock.js +35 -0
  174. package/lib/core/tasks/package/dependencies/lock.js.map +1 -0
  175. package/lib/core/tasks/package/dependencies/verify.d.ts +6 -0
  176. package/lib/core/tasks/package/dependencies/verify.js +44 -0
  177. package/lib/core/tasks/package/dependencies/verify.js.map +1 -0
  178. package/lib/core/tasks/package/install/dependencies.d.ts +22 -0
  179. package/lib/core/tasks/package/install/dependencies.js +43 -0
  180. package/lib/core/tasks/package/install/dependencies.js.map +1 -0
  181. package/lib/core/tasks/package/install/index.d.ts +25 -0
  182. package/lib/core/tasks/package/install/index.js +37 -0
  183. package/lib/core/tasks/package/install/index.js.map +1 -0
  184. package/lib/core/tasks/package/version/create.d.ts +36 -0
  185. package/lib/core/tasks/package/version/create.js +133 -0
  186. package/lib/core/tasks/package/version/create.js.map +1 -0
  187. package/lib/core/tasks/package/version/promote.d.ts +30 -0
  188. package/lib/core/tasks/package/version/promote.js +79 -0
  189. package/lib/core/tasks/package/version/promote.js.map +1 -0
  190. package/lib/core/tasks/package/version/resolve-latest.d.ts +24 -0
  191. package/lib/core/tasks/package/version/resolve-latest.js +78 -0
  192. package/lib/core/tasks/package/version/resolve-latest.js.map +1 -0
  193. package/lib/core/tasks/package/version/resolve-next.d.ts +24 -0
  194. package/lib/core/tasks/package/version/resolve-next.js +49 -0
  195. package/lib/core/tasks/package/version/resolve-next.js.map +1 -0
  196. package/lib/core/tasks/project/deploy/start.d.ts +22 -0
  197. package/lib/core/tasks/project/deploy/start.js +117 -0
  198. package/lib/core/tasks/project/deploy/start.js.map +1 -0
  199. package/lib/core/tasks/project/reset/tracking.d.ts +25 -0
  200. package/lib/core/tasks/project/reset/tracking.js +32 -0
  201. package/lib/core/tasks/project/reset/tracking.js.map +1 -0
  202. package/lib/core/tasks/util/file/exists.d.ts +24 -0
  203. package/lib/core/tasks/util/file/exists.js +53 -0
  204. package/lib/core/tasks/util/file/exists.js.map +1 -0
  205. package/lib/core/tasks/util/file/find.d.ts +30 -0
  206. package/lib/core/tasks/util/file/find.js +70 -0
  207. package/lib/core/tasks/util/file/find.js.map +1 -0
  208. package/lib/core/tasks/util/log.d.ts +13 -0
  209. package/lib/core/tasks/util/log.js +10 -0
  210. package/lib/core/tasks/util/log.js.map +1 -0
  211. package/lib/core/templates/README.md +35 -0
  212. package/lib/core/tree.d.ts +7 -0
  213. package/lib/core/tree.js +42 -0
  214. package/lib/core/tree.js.map +1 -0
  215. package/messages/service.connect.github.md +16 -0
  216. package/messages/ship.flow.eject.md +21 -0
  217. package/messages/ship.flow.info.md +21 -0
  218. package/messages/ship.flow.list.md +15 -0
  219. package/messages/ship.flow.run.md +23 -0
  220. package/messages/ship.project.init.md +23 -0
  221. package/messages/ship.service.delete.md +19 -0
  222. package/messages/ship.service.info.md +19 -0
  223. package/messages/ship.service.list.md +11 -0
  224. package/messages/ship.task.info.md +25 -0
  225. package/messages/ship.task.list.md +15 -0
  226. package/messages/ship.task.run.md +29 -0
  227. package/oclif.lock +10313 -0
  228. package/oclif.manifest.json +707 -0
  229. package/package.json +254 -0
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+ import { resolve } from 'node:path';
15
+ import { Args } from '@oclif/core';
16
+ import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
17
+ import { Messages } from '@salesforce/core';
18
+ import { loadConfig, resolveProjectPaths } from '../../../core/config.loader.js';
19
+ import { createFlowContext } from '../../../core/flow.context.js';
20
+ import { FlowRegistry } from '../../../core/flow.registry.js';
21
+ import { parseCliParams } from '../../../core/task.param.js';
22
+ import { asError, ExpectedError } from '../../../core/error.js';
23
+ import { runFlow } from '../../../core/flow.runner.js';
24
+ import { OrgRegistry } from '../../../core/org.registry.js';
25
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
26
+ const messages = Messages.loadMessages('@sfship/plugin-ship', 'ship.flow.run');
27
+ /** Executes a built-in flow or one defined in `ship.yml`. */
28
+ export default class FlowRun extends SfCommand {
29
+ static summary = messages.getMessage('summary');
30
+ static description = messages.getMessage('description');
31
+ static examples = messages.getMessages('examples');
32
+ static args = {
33
+ flowName: Args.string({ description: messages.getMessage('flags.name.summary'), required: true }),
34
+ };
35
+ static flags = {
36
+ config: Flags.file({ default: 'ship.yml', summary: messages.getMessage('flags.config.summary') }),
37
+ param: Flags.string({ summary: messages.getMessage('flags.param.summary'), multiple: true }),
38
+ };
39
+ static enableJsonFlag = false;
40
+ async run() {
41
+ const { args, flags } = await this.parse(FlowRun);
42
+ this.log('');
43
+ this.styledHeader('Flow Run');
44
+ const config = loadConfig(flags.config);
45
+ const { projectDir, shipDir } = resolveProjectPaths(flags.config, config);
46
+ const registry = new FlowRegistry(shipDir);
47
+ let flow;
48
+ try {
49
+ flow = registry.resolveFlow(args.flowName);
50
+ }
51
+ catch (err) {
52
+ this.error(asError(err).message, { exit: 1 });
53
+ }
54
+ let params;
55
+ try {
56
+ params = parseCliParams(flags.param ?? []);
57
+ }
58
+ catch (err) {
59
+ this.error(asError(err).message, { exit: 1 });
60
+ }
61
+ const context = createFlowContext({
62
+ projectDir,
63
+ shipDir,
64
+ config,
65
+ orgs: new OrgRegistry(resolve(shipDir, 'orgs'), config.project.slug),
66
+ // The renderer takes over this logger; this base is only a fallback.
67
+ log: (message) => this.log(message),
68
+ params,
69
+ // Subcommands print their own output natively; we only normalise a
70
+ // failure into an ExpectedError so the flow reports it without a stack.
71
+ runCommand: async (id, argv) => {
72
+ try {
73
+ return await this.config.runCommand(id, argv);
74
+ }
75
+ catch (err) {
76
+ throw new ExpectedError(asError(err).message);
77
+ }
78
+ },
79
+ });
80
+ try {
81
+ await runFlow(args.flowName, flow, context);
82
+ }
83
+ catch (err) {
84
+ if (!(err instanceof ExpectedError))
85
+ throw err;
86
+ process.exit(1);
87
+ }
88
+ }
89
+ }
90
+ //# sourceMappingURL=run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../src/commands/ship/flow/run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,YAAY,E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,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;YAC3C,MAAM;YACN,mEAAmE;YACnE,wEAAwE;YACxE,UAAU,EAAE,KAAK,EAAE,EAAU,EAAE,IAAc,EAAE,EAAE;gBAC/C,IAAI,CAAC;oBACH,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;gBAChD,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,MAAM,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;gBAChD,CAAC;YACH,CAAC;SACF,CAAC,CAAC;QAEH,IAAI,CAAC;YACH,MAAM,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,CAAC,GAAG,YAAY,aAAa,CAAC;gBAAE,MAAM,GAAG,CAAC;YAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ export default class ProjectInit extends SfCommand<void> {
3
+ static readonly summary: string;
4
+ static readonly description: string;
5
+ static readonly examples: string[];
6
+ static readonly enableJsonFlag = false;
7
+ static readonly flags: {
8
+ template: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ 'lwc-language': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ };
12
+ run(): Promise<void>;
13
+ }
@@ -0,0 +1,81 @@
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+ import { basename, dirname, resolve } from 'node:path';
15
+ import { input, select } from '@inquirer/prompts';
16
+ import { SfCommand, Flags, StandardColors } from '@salesforce/sf-plugins-core';
17
+ import { Messages } from '@salesforce/core';
18
+ import { initProject } from '../../../core/project.init.js';
19
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
20
+ const messages = Messages.loadMessages('@sfship/plugin-ship', 'ship.project.init');
21
+ export default class ProjectInit extends SfCommand {
22
+ static summary = messages.getMessage('summary');
23
+ static description = messages.getMessage('description');
24
+ static examples = messages.getMessages('examples');
25
+ static enableJsonFlag = false;
26
+ static flags = {
27
+ template: Flags.string({
28
+ summary: messages.getMessage('flags.template.summary'),
29
+ default: 'standard',
30
+ }),
31
+ 'api-version': Flags.string({
32
+ summary: messages.getMessage('flags.api-version.summary'),
33
+ }),
34
+ 'lwc-language': Flags.string({
35
+ summary: messages.getMessage('flags.lwc-language.summary'),
36
+ }),
37
+ };
38
+ async run() {
39
+ const { flags } = await this.parse(ProjectInit);
40
+ const packageName = await input({ message: 'Project Name:' });
41
+ const namespaceRaw = await input({ message: 'Namespace:' });
42
+ const namespace = namespaceRaw.trim() || undefined;
43
+ const packageType = await select({
44
+ message: 'Package Type:',
45
+ choices: [
46
+ { value: 'Managed', name: '2GP Managed' },
47
+ { value: 'Unlocked', name: 'Unlocked' },
48
+ ],
49
+ });
50
+ const repoUrlRaw = await input({ message: 'GitHub Repository URL:' });
51
+ const repoUrl = repoUrlRaw.trim() || undefined;
52
+ const cwd = resolve('.');
53
+ const generateArgs = ['--name', basename(cwd), '--template', flags.template, '--output-dir', dirname(cwd)];
54
+ if (flags['api-version'])
55
+ generateArgs.push('--api-version', flags['api-version']);
56
+ if (flags['lwc-language'])
57
+ generateArgs.push('--lwc-language', flags['lwc-language']);
58
+ this.log('');
59
+ await this.config.runCommand('project:generate', generateArgs);
60
+ const { created, skipped } = initProject({ packageName, namespace, packageType, repoUrl }, cwd);
61
+ this.log('');
62
+ for (const f of created)
63
+ this.log(` created ${f}`);
64
+ for (const f of skipped) {
65
+ if (f === 'README.md') {
66
+ this.log(` skipped ${f} — your project already has one. See the SF Ship docs for recommended content.`);
67
+ }
68
+ else {
69
+ this.log(` skipped ${f} (already exists)`);
70
+ }
71
+ }
72
+ this.log('');
73
+ this.styledHeader('Project Initialized!');
74
+ this.styledObject({
75
+ 'Next steps': StandardColors.success(`${cwd}/README.md`),
76
+ 'VS Code': 'Reload the window to activate the Salesforce extensions.',
77
+ });
78
+ this.log('');
79
+ }
80
+ }
81
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../src/commands/ship/project/init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;AAEnF,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAe;IAC/C,MAAM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CAAC,mBAAmB,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACb,IAAI,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC;QAC1C,IAAI,CAAC,YAAY,CAAC;YAChB,YAAY,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,GAAG,YAAY,CAAC;YACxD,SAAS,EAAE,0DAA0D;SACtE,CAAC,CAAC;QACH,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACf,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ /** Connects a GitHub account via OAuth device flow. */
3
+ export default class ServiceConnectGithub extends SfCommand<void> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly enableJsonFlag = false;
8
+ static readonly flags: {
9
+ alias: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+ import { ux } from '@oclif/core';
15
+ import { SfCommand, Flags, StandardColors } from '@salesforce/sf-plugins-core';
16
+ import { Messages } from '@salesforce/core';
17
+ import { setGithubToken, requestDeviceCode, pollForToken, fetchGithubUser } from '../../../../core/service.github.js';
18
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
19
+ const messages = Messages.loadMessages('@sfship/plugin-ship', 'service.connect.github');
20
+ /** Connects a GitHub account via OAuth device flow. */
21
+ export default class ServiceConnectGithub extends SfCommand {
22
+ static summary = messages.getMessage('summary');
23
+ static description = messages.getMessage('description');
24
+ static examples = messages.getMessages('examples');
25
+ static enableJsonFlag = false;
26
+ static flags = {
27
+ alias: Flags.string({ summary: messages.getMessage('flags.alias.summary'), default: 'default' }),
28
+ };
29
+ async run() {
30
+ const { flags } = await this.parse(ServiceConnectGithub);
31
+ const deviceData = await requestDeviceCode();
32
+ this.log('');
33
+ this.styledHeader('Service Connect: GitHub');
34
+ this.log(`Go to: \x1b[36m${deviceData.verification_uri}\x1b[0m`);
35
+ this.log(`Code: ${StandardColors.success(deviceData.user_code)}\n`);
36
+ ux.action.start('Waiting for authorization');
37
+ const token = await pollForToken(deviceData.device_code, deviceData.interval * 1000);
38
+ ux.action.stop();
39
+ const { user, scopes } = await fetchGithubUser(token);
40
+ setGithubToken(token, user.login, flags.alias, scopes);
41
+ this.log('');
42
+ this.log(StandardColors.success('✓') + ' Connected to Github as ' + StandardColors.success(user.login));
43
+ this.log(`Scopes: ${scopes.join(', ')}`);
44
+ this.log('');
45
+ }
46
+ }
47
+ //# sourceMappingURL=github.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github.js","sourceRoot":"","sources":["../../../../../src/commands/ship/service/connect/github.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAEtH,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,Y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AAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,eAAe,CAAC,KAAK,CAAC,CAAC;QACtD,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACvD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACb,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,0BAA0B,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QACxG,IAAI,CAAC,GAAG,CAAC,WAAW,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACf,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ /** Removes a stored service credential. */
3
+ export default class ServiceDelete extends SfCommand<void> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly args: {
8
+ service: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
9
+ alias: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
10
+ };
11
+ static readonly enableJsonFlag = false;
12
+ run(): Promise<void>;
13
+ }
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+ import { Args } from '@oclif/core';
15
+ import { SfCommand, StandardColors } from '@salesforce/sf-plugins-core';
16
+ import { Messages } from '@salesforce/core';
17
+ import { getMeta, deleteToken } from '../../../core/service.js';
18
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
19
+ const messages = Messages.loadMessages('@sfship/plugin-ship', 'ship.service.delete');
20
+ /** Removes a stored service credential. */
21
+ export default class ServiceDelete extends SfCommand {
22
+ static summary = messages.getMessage('summary');
23
+ static description = messages.getMessage('description');
24
+ static examples = messages.getMessages('examples');
25
+ static args = {
26
+ service: Args.string({ description: messages.getMessage('args.service.summary'), required: true }),
27
+ alias: Args.string({ description: messages.getMessage('args.alias.summary'), default: 'default' }),
28
+ };
29
+ static enableJsonFlag = false;
30
+ async run() {
31
+ const { args } = await this.parse(ServiceDelete);
32
+ this.log('');
33
+ this.styledHeader('Service Delete');
34
+ const alias = args.alias;
35
+ const meta = getMeta(args.service, alias);
36
+ if (!meta) {
37
+ this.error(`No credential found for "${args.service}" with alias "${alias}".`, { exit: 1 });
38
+ }
39
+ deleteToken(args.service, meta.account, alias);
40
+ this.log(StandardColors.success('✓') + ` Removed ${args.service} credential ` + StandardColors.success(alias));
41
+ this.log('');
42
+ }
43
+ }
44
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/commands/ship/service/delete.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEhE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAC;AAErF,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QAE/C,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,YAAY,IAAI,CAAC,OAAO,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/G,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACf,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ /** Shows details for a stored service credential. */
3
+ export default class ServiceInfo extends SfCommand<void> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly args: {
8
+ service: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
9
+ alias: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
10
+ };
11
+ static readonly enableJsonFlag = false;
12
+ run(): Promise<void>;
13
+ }
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+ import { Args } from '@oclif/core';
15
+ import { SfCommand, Ux, StandardColors } from '@salesforce/sf-plugins-core';
16
+ import { Messages } from '@salesforce/core';
17
+ import { getMeta } from '../../../core/service.js';
18
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
19
+ const messages = Messages.loadMessages('@sfship/plugin-ship', 'ship.service.info');
20
+ /** Shows details for a stored service credential. */
21
+ export default class ServiceInfo extends SfCommand {
22
+ static summary = messages.getMessage('summary');
23
+ static description = messages.getMessage('description');
24
+ static examples = messages.getMessages('examples');
25
+ static args = {
26
+ service: Args.string({ description: messages.getMessage('args.service.summary'), required: true }),
27
+ alias: Args.string({ description: messages.getMessage('args.alias.summary'), default: 'default' }),
28
+ };
29
+ static enableJsonFlag = false;
30
+ async run() {
31
+ this.log('');
32
+ this.styledHeader('Service Info');
33
+ const { args } = await this.parse(ServiceInfo);
34
+ const meta = getMeta(args.service, args.alias);
35
+ if (!meta) {
36
+ this.error(`No credential found for "${args.service}" with alias "${args.alias}".`, { exit: 1 });
37
+ }
38
+ const ux = new Ux();
39
+ this.log('');
40
+ this.log(`${StandardColors.info(meta.service)} ${StandardColors.info('—')} ${StandardColors.success(meta.alias)}`);
41
+ ux.table({
42
+ data: [
43
+ { field: 'Service', value: meta.service },
44
+ { field: 'Account', value: meta.account },
45
+ { field: 'Alias', value: meta.alias },
46
+ { field: 'Scopes', value: meta.scopes.join(', ') || '—' },
47
+ ],
48
+ });
49
+ }
50
+ }
51
+ //# sourceMappingURL=info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.js","sourceRoot":"","sources":["../../../../src/commands/ship/service/info.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;AAEnF,qDAAqD;AACrD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAe;IAC/C,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WA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AK,CAAC,EAAE,CAAC,CAAC;QAEnH,EAAE,CAAC,KAAK,CAAC;YACP,IAAI,EAAE;gBACJ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE;gBACzC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE;gBACzC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;gBACrC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE;aAC1D;SACF,CAAC,CAAC;IACL,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ /** Lists all connected services. */
3
+ export default class ServiceList extends SfCommand<void> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly enableJsonFlag = false;
8
+ run(): Promise<void>;
9
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+ import { SfCommand, Ux, StandardColors } from '@salesforce/sf-plugins-core';
15
+ import { Messages } from '@salesforce/core';
16
+ import { listMetas } from '../../../core/service.js';
17
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
18
+ const messages = Messages.loadMessages('@sfship/plugin-ship', 'ship.service.list');
19
+ /** Lists all connected services. */
20
+ export default class ServiceList extends SfCommand {
21
+ static summary = messages.getMessage('summary');
22
+ static description = messages.getMessage('description');
23
+ static examples = messages.getMessages('examples');
24
+ static enableJsonFlag = false;
25
+ // eslint-disable-next-line @typescript-eslint/require-await
26
+ async run() {
27
+ const metas = listMetas();
28
+ const ux = new Ux();
29
+ this.log('');
30
+ this.styledHeader('Connected Services');
31
+ if (metas.length === 0) {
32
+ this.log(StandardColors.warning('No services connected'));
33
+ this.log(StandardColors.info('Tip:') + ' Run sf ship service connect to get started.');
34
+ this.log('');
35
+ return;
36
+ }
37
+ ux.table({
38
+ data: metas
39
+ .sort((a, b) => a.service.localeCompare(b.service))
40
+ .map((m) => ({
41
+ service: m.service,
42
+ account: m.account,
43
+ alias: m.alias,
44
+ scopes: m.scopes.join(', ') || '—',
45
+ })),
46
+ });
47
+ this.log('');
48
+ this.log(StandardColors.info('Tip:') +
49
+ ' Run ' +
50
+ StandardColors.success('sf ship service info <service> <alias>') +
51
+ ' to see full details.');
52
+ this.log('');
53
+ }
54
+ }
55
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/ship/service/list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;AAEnF,oCAAoC;AACpC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAe;IAC/C,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU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,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;YACzB,OAAO;YACP,cAAc,CAAC,OAAO,CAAC,wCAAwC,CAAC;YAChE,uBAAuB,CAC1B,CAAC;QACF,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACf,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ /** Shows description, params, and outputs for a task. */
3
+ export default class TaskInfo extends SfCommand<void> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly args: {
8
+ taskName: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
9
+ };
10
+ static readonly flags: {
11
+ config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
12
+ };
13
+ static readonly enableJsonFlag = false;
14
+ run(): Promise<void>;
15
+ }
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+ import { Args } from '@oclif/core';
15
+ import { SfCommand, Flags, Ux, StandardColors } from '@salesforce/sf-plugins-core';
16
+ import { Messages } from '@salesforce/core';
17
+ import { loadConfig, resolveProjectPaths } from '../../../core/config.loader.js';
18
+ import { TaskRegistry } from '../../../core/task.registry.js';
19
+ import { formatTaskPreview } from '../../../core/task.view.js';
20
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
21
+ const messages = Messages.loadMessages('@sfship/plugin-ship', 'ship.task.info');
22
+ /** Shows description, params, and outputs for a task. */
23
+ export default class TaskInfo extends SfCommand {
24
+ static summary = messages.getMessage('summary');
25
+ static description = messages.getMessage('description');
26
+ static examples = messages.getMessages('examples');
27
+ static args = {
28
+ taskName: Args.string({ description: messages.getMessage('args.taskName.summary'), required: true }),
29
+ };
30
+ static flags = {
31
+ config: Flags.file({ default: 'ship.yml', summary: messages.getMessage('flags.config.summary') }),
32
+ };
33
+ static enableJsonFlag = false;
34
+ async run() {
35
+ const { args, flags } = await this.parse(TaskInfo);
36
+ this.log('');
37
+ this.styledHeader('Task Info');
38
+ const config = loadConfig(flags.config);
39
+ const { shipDir } = resolveProjectPaths(flags.config, config);
40
+ const task = await new TaskRegistry(shipDir).resolveTask(args.taskName);
41
+ const ux = new Ux();
42
+ this.log(formatTaskPreview(task));
43
+ this.log('');
44
+ if (task.params.length > 0) {
45
+ this.styledHeader('Task Params');
46
+ ux.table({
47
+ data: task.params.map((p) => ({
48
+ name: p.name,
49
+ type: p.type,
50
+ required: p.required ? 'yes' : 'no',
51
+ description: p.description,
52
+ })),
53
+ });
54
+ }
55
+ if (task.outputs && task.outputs.length > 0) {
56
+ this.styledHeader('Task Outputs');
57
+ this.log(StandardColors.info('Tip:') + ' Reference these in subsequent steps using ${{ steps.<step-id>.<output-name> }}');
58
+ ux.table({
59
+ data: task.outputs.map((o) => ({
60
+ name: o.name,
61
+ type: o.type,
62
+ description: o.description,
63
+ })),
64
+ });
65
+ }
66
+ const requiredParams = task.params
67
+ .filter((p) => p.required)
68
+ .map((p) => `--param ${p.name}=<${p.name}>`)
69
+ .join(' ');
70
+ const exampleCmd = [`sf ship task run ${args.taskName}`, requiredParams].filter(Boolean).join(' ');
71
+ this.log(StandardColors.info('Tip:') + ' Run ' + StandardColors.success(exampleCmd) + ' to execute this task.');
72
+ this.log('');
73
+ }
74
+ }
75
+ //# sourceMappingURL=info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.js","sourceRoot":"","sources":["../../../../src/commands/ship/task/info.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,O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,cAAc,CAAC,CAAC;YAClC,IAAI,CAAC,GAAG,CACN,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,iFAAiF,CAChH,CAAC;YACF,EAAE,CAAC,KAAK,CAAC;gBACP,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;oBAC7B,IAAI,EAAE,CAAC,CAAC,IAAI;oBACZ,IAAI,EAAE,CAAC,CAAC,IAAI;oBACZ,WAAW,EAAE,CAAC,CAAC,WAAW;iBAC3B,CAAC,CAAC;aACJ,CAAC,CAAC;QACL,CAAC;QAED,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM;aAC/B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;aACzB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,GAAG,CAAC;aAC3C,IAAI,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,UAAU,GAAG,CAAC,oBAAoB,IAAI,CAAC,QAAQ,EAAE,EAAE,cAAc,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,wBAAwB,CAAC,CAAC;QAChH,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACf,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ /** Lists all available tasks. */
3
+ export default class TaskList extends SfCommand<void> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly flags: {
8
+ config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
+ };
10
+ static readonly enableJsonFlag = false;
11
+ run(): Promise<void>;
12
+ }