File tree Expand file tree Collapse file tree 4 files changed +2
-33
lines changed
Expand file tree Collapse file tree 4 files changed +2
-33
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { logger } from '@socketsecurity/registry/lib/logger'
55
66import { createRepo } from './create-repo'
77import constants from '../../constants'
8- import { commonFlags , outputFlags } from '../../flags'
8+ import { commonFlags } from '../../flags'
99import { meowOrExit } from '../../utils/meow-with-subcommands'
1010import { getFlagListOutput } from '../../utils/output-formatting'
1111
@@ -19,7 +19,6 @@ const config: CliCommandConfig = {
1919 hidden : false ,
2020 flags : {
2121 ...commonFlags ,
22- ...outputFlags ,
2322 repoName : {
2423 type : 'string' ,
2524 shortFlag : 'n' ,
@@ -103,8 +102,6 @@ async function run(
103102 }
104103
105104 await createRepo ( {
106- outputJson : Boolean ( cli . flags [ 'json' ] ) ,
107- outputMarkdown : Boolean ( cli . flags [ 'markdown' ] ) ,
108105 orgSlug,
109106 repoName,
110107 description : String ( cli . flags [ 'repoDescription' ] || '' ) ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { logger } from '@socketsecurity/registry/lib/logger'
55
66import { updateRepo } from './update-repo'
77import constants from '../../constants'
8- import { commonFlags , outputFlags } from '../../flags'
8+ import { commonFlags } from '../../flags'
99import { meowOrExit } from '../../utils/meow-with-subcommands'
1010import { getFlagListOutput } from '../../utils/output-formatting'
1111
@@ -19,7 +19,6 @@ const config: CliCommandConfig = {
1919 hidden : false ,
2020 flags : {
2121 ...commonFlags ,
22- ...outputFlags ,
2322 repoName : {
2423 type : 'string' ,
2524 shortFlag : 'n' ,
@@ -105,8 +104,6 @@ async function run(
105104 }
106105
107106 await updateRepo ( {
108- outputJson : Boolean ( cli . flags [ 'json' ] ) ,
109- outputMarkdown : Boolean ( cli . flags [ 'markdown' ] ) ,
110107 orgSlug,
111108 repoName,
112109 description : String ( cli . flags [ 'repoDescription' ] || '' ) ,
Original file line number Diff line number Diff line change @@ -8,13 +8,9 @@ export async function createRepo({
88 description,
99 homepage,
1010 orgSlug,
11- outputJson,
12- outputMarkdown,
1311 repoName,
1412 visibility
1513} : {
16- outputJson : boolean
17- outputMarkdown : boolean
1814 orgSlug : string
1915 repoName : string
2016 description : string
@@ -35,8 +31,6 @@ export async function createRepo({
3531 description,
3632 homepage,
3733 orgSlug,
38- outputJson,
39- outputMarkdown,
4034 repoName,
4135 visibility
4236 } )
@@ -48,14 +42,10 @@ async function createRepoWithToken({
4842 description,
4943 homepage,
5044 orgSlug,
51- outputJson,
52- outputMarkdown,
5345 repoName,
5446 visibility
5547} : {
5648 apiToken : string
57- outputJson : boolean
58- outputMarkdown : boolean
5949 orgSlug : string
6050 repoName : string
6151 description : string
@@ -71,9 +61,6 @@ async function createRepoWithToken({
7161 const socketSdk = await setupSdk ( apiToken )
7262 const result = await handleApiCall (
7363 socketSdk . createOrgRepo ( orgSlug , {
74- outputJson,
75- outputMarkdown,
76- orgSlug,
7764 name : repoName ,
7865 description,
7966 homepage,
Original file line number Diff line number Diff line change @@ -8,13 +8,9 @@ export async function updateRepo({
88 description,
99 homepage,
1010 orgSlug,
11- outputJson,
12- outputMarkdown,
1311 repoName,
1412 visibility
1513} : {
16- outputJson : boolean
17- outputMarkdown : boolean
1814 orgSlug : string
1915 repoName : string
2016 description : string
@@ -35,8 +31,6 @@ export async function updateRepo({
3531 description,
3632 homepage,
3733 orgSlug,
38- outputJson,
39- outputMarkdown,
4034 repoName,
4135 visibility
4236 } )
@@ -48,14 +42,10 @@ async function updateRepoWithToken({
4842 description,
4943 homepage,
5044 orgSlug,
51- outputJson,
52- outputMarkdown,
5345 repoName,
5446 visibility
5547} : {
5648 apiToken : string
57- outputJson : boolean
58- outputMarkdown : boolean
5949 orgSlug : string
6050 repoName : string
6151 description : string
@@ -71,8 +61,6 @@ async function updateRepoWithToken({
7161 const socketSdk = await setupSdk ( apiToken )
7262 const result = await handleApiCall (
7363 socketSdk . updateOrgRepo ( orgSlug , repoName , {
74- outputJson,
75- outputMarkdown,
7664 orgSlug,
7765 name : repoName ,
7866 description,
You can’t perform that action at this time.
0 commit comments