Skip to content

Commit 04d20c1

Browse files
author
Oleg Sucharevich
authored
sharing policy support during git context creation (#203)
1 parent f9d850d commit 04d20c1

File tree

6 files changed

+10
-1
lines changed

6 files changed

+10
-1
lines changed

lib/interface/cli/commands/context/create/git/base.cmd.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ const command = new Command({
1717
title: 'Create Git Context',
1818
},
1919
builder: (yargs) => {
20+
yargs.option('sharing-policy', {
21+
describe: 'Set the sharing policy for git contexts',
22+
choices: ['AccountAdmins', 'AllUsersInAccount'],
23+
default: 'AccountAdmins',
24+
});
2025
return yargs;
2126
},
2227
handler: async (argv) => {

lib/interface/cli/commands/context/create/git/types/bitbucket.cmd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const command = new Command({
4444
spec: {
4545
type: 'git.bitbucket',
4646
data: {
47+
sharingPolicy: argv.sharingPolicy,
4748
host: 'bitbucket.org',
4849
useSSL: true,
4950
auth: {

lib/interface/cli/commands/context/create/git/types/github.cmd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const command = new Command({
5353
spec: {
5454
type: 'git.github',
5555
data: {
56+
sharingPolicy: argv.sharingPolicy,
5657
host: argv.host || 'github.com',
5758
useSSL: Boolean(argv.useSSL) || true,
5859
auth: {

lib/interface/cli/commands/context/create/git/types/gitlab.cmd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const command = new Command({
5353
spec: {
5454
type: 'git.gitlab',
5555
data: {
56+
sharingPolicy: argv.sharingPolicy,
5657
host: argv.host || 'gitlab.com',
5758
useSSL: Boolean(argv.useSSL) || true,
5859
auth: {

lib/interface/cli/commands/context/create/git/types/stash.cmd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const command = new Command({
5656
spec: {
5757
type: 'git.stash',
5858
data: {
59+
sharingPolicy: argv.sharingPolicy,
5960
host: argv.host || 'stash.com',
6061
useSSL: Boolean(argv.useSSL) || true,
6162
auth: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.8.60",
3+
"version": "0.8.61",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)