@simplysf/simply-gitlab 0.6.0 → 0.6.1

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.
package/README.md CHANGED
@@ -1205,7 +1205,8 @@ FLAGS
1205
1205
  --path=<value> Repository path, the URL slug. The name is derived from it when --name is not given.
1206
1206
  --template=<value> Template to create from: a built-in name, or with --custom-template or --template-group a
1207
1207
  custom one.
1208
- --template-group=<value> Group whose custom project templates --template names, by id or full path.
1208
+ --template-group=<value> Group whose custom project templates --template or --template-project names, by id or full
1209
+ path.
1209
1210
  --template-project=<value> Custom template project to create from, by id or full path. Cannot be combined with
1210
1211
  --template.
1211
1212
  --topics=<value> Comma-separated topics to label the project with.
@@ -1229,7 +1230,8 @@ DESCRIPTION
1229
1230
  --template names one of the built-in templates GitLab ships, such as express or rails. To create from a custom
1230
1231
  template instead, add --custom-template for one the instance administrator registered, --template-group for one in a
1231
1232
  group, or use --template-project to name the template project itself by id or path — which GitLab prefers, because a
1232
- name can be ambiguous. Custom templates need a Premium or Ultimate instance.
1233
+ name can be ambiguous. Add --template-group to --template-project when the template belongs to a group rather than the
1234
+ instance. Custom templates need a Premium or Ultimate instance.
1233
1235
 
1234
1236
  A template is applied asynchronously: this command returns as soon as the project record exists, with an import status
1235
1237
  of "scheduled", and the files arrive a few seconds later. Check "project view" until its import_status reads
@@ -1245,6 +1247,8 @@ EXAMPLES
1245
1247
 
1246
1248
  $ simply gitlab project create --path new-service --template-project platform/templates/service-skeleton --dry-run
1247
1249
 
1250
+ $ simply gitlab project create --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates
1251
+
1248
1252
  FLAG DESCRIPTIONS
1249
1253
  -e, --env-file=<value> Path to a .env file holding connection settings.
1250
1254
 
@@ -25,7 +25,8 @@ export default class GitlabProjectCreate extends GitLabCommand {
25
25
  'create from a custom template instead, add --custom-template for one the instance ' +
26
26
  'administrator registered, --template-group for one in a group, or use --template-project ' +
27
27
  'to name the template project itself by id or path — which GitLab prefers, because a name ' +
28
- 'can be ambiguous. Custom templates need a Premium or Ultimate instance.\n\n' +
28
+ 'can be ambiguous. Add --template-group to --template-project when the template belongs to ' +
29
+ 'a group rather than the instance. Custom templates need a Premium or Ultimate instance.\n\n' +
29
30
  'A template is applied asynchronously: this command returns as soon as the project record ' +
30
31
  'exists, with an import status of "scheduled", and the files arrive a few seconds later. ' +
31
32
  'Check "project view" until its import_status reads "finished" before writing to the ' +
@@ -36,6 +37,7 @@ export default class GitlabProjectCreate extends GitLabCommand {
36
37
  '<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template express --visibility internal',
37
38
  '<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template service-skeleton --template-group platform/templates',
38
39
  '<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run',
40
+ '<%= config.bin %> <%= command.id %> --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates',
39
41
  ];
40
42
  static flags = {
41
43
  ...writeFlags,
@@ -66,7 +68,7 @@ export default class GitlabProjectCreate extends GitLabCommand {
66
68
  default: false,
67
69
  }),
68
70
  'template-group': Flags.string({
69
- summary: 'Group whose custom project templates --template names, by id or full path.',
71
+ summary: 'Group whose custom project templates --template or --template-project names, by id or full path.',
70
72
  }),
71
73
  'template-project': Flags.string({
72
74
  summary: 'Custom template project to create from, by id or full path. Cannot be combined with --template.',
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/gitlab/project/create.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAWvF,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,aAA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AO,CAAC;SACzB,CAAC,CACH,CAAC;QACF,OAAO,OAAO,CAAC;IACjB,CAAC"}
@@ -2156,12 +2156,13 @@
2156
2156
  "gitlab:project:create": {
2157
2157
  "aliases": [],
2158
2158
  "args": {},
2159
- "description": "Creates the project in --namespace, or in the namespace of the token owner when none is given. Give it --name or --path; GitLab derives whichever one is missing.\n\n--template names one of the built-in templates GitLab ships, such as express or rails. To create from a custom template instead, add --custom-template for one the instance administrator registered, --template-group for one in a group, or use --template-project to name the template project itself by id or path — which GitLab prefers, because a name can be ambiguous. Custom templates need a Premium or Ultimate instance.\n\nA template is applied asynchronously: this command returns as soon as the project record exists, with an import status of \"scheduled\", and the files arrive a few seconds later. Check \"project view\" until its import_status reads \"finished\" before writing to the repository. --dry-run prints the exact request body; a namespace or template given as a path is still looked up, so the printed ids are the ones that would be sent.",
2159
+ "description": "Creates the project in --namespace, or in the namespace of the token owner when none is given. Give it --name or --path; GitLab derives whichever one is missing.\n\n--template names one of the built-in templates GitLab ships, such as express or rails. To create from a custom template instead, add --custom-template for one the instance administrator registered, --template-group for one in a group, or use --template-project to name the template project itself by id or path — which GitLab prefers, because a name can be ambiguous. Add --template-group to --template-project when the template belongs to a group rather than the instance. Custom templates need a Premium or Ultimate instance.\n\nA template is applied asynchronously: this command returns as soon as the project record exists, with an import status of \"scheduled\", and the files arrive a few seconds later. Check \"project view\" until its import_status reads \"finished\" before writing to the repository. --dry-run prints the exact request body; a namespace or template given as a path is still looked up, so the printed ids are the ones that would be sent.",
2160
2160
  "examples": [
2161
2161
  "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps",
2162
2162
  "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template express --visibility internal",
2163
2163
  "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template service-skeleton --template-group platform/templates",
2164
- "<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run"
2164
+ "<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run",
2165
+ "<%= config.bin %> <%= command.id %> --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates"
2165
2166
  ],
2166
2167
  "flags": {
2167
2168
  "json": {
@@ -2281,7 +2282,7 @@
2281
2282
  },
2282
2283
  "template-group": {
2283
2284
  "name": "template-group",
2284
- "summary": "Group whose custom project templates --template names, by id or full path.",
2285
+ "summary": "Group whose custom project templates --template or --template-project names, by id or full path.",
2285
2286
  "hasDynamicHelp": false,
2286
2287
  "multiple": false,
2287
2288
  "type": "option"
@@ -3240,5 +3241,5 @@
3240
3241
  ]
3241
3242
  }
3242
3243
  },
3243
- "version": "0.6.0"
3244
+ "version": "0.6.1"
3244
3245
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplysf/simply-gitlab",
3
3
  "description": "Command-line interface for working with GitLab",
4
- "version": "0.6.0",
4
+ "version": "0.6.1",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-gitlab",
7
7
  "bugs": "https://github.com/SimplySF/simply-gitlab/issues",
@@ -90,7 +90,7 @@
90
90
  },
91
91
  "dependencies": {
92
92
  "@oclif/core": "^4.11.2",
93
- "@simplysf/simply-gitlab-core": "^0.5.0"
93
+ "@simplysf/simply-gitlab-core": "^0.5.1"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@oclif/plugin-command-snapshot": "^5.4.0",
@@ -245,5 +245,5 @@
245
245
  "service": true
246
246
  }
247
247
  },
248
- "gitHead": "9477180c7be1bc1decfcccea64f89b4b6ee6ca2c"
248
+ "gitHead": "dc8cdc8e13b8a4053d503cb5efbdb54f637aa19a"
249
249
  }