File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ const config: CliCommandConfig = {
2929 all : {
3030 type : 'boolean' ,
3131 description :
32- 'Apply for all known repos reported by the Socket API. Supersedes `repos`.' ,
32+ 'Apply for all known repositories reported by the Socket API. Supersedes `repos`.' ,
3333 } ,
3434 githubToken : {
3535 type : 'string' ,
3636 description :
37- '(required) GitHub token for authentication (or set GITHUB_TOKEN as an environment variable) ' ,
37+ 'Required GitHub token for authentication.\nMay set environment variable GITHUB_TOKEN or SOCKET_CLI_GITHUB_TOKEN instead. ' ,
3838 } ,
3939 githubApiUrl : {
4040 type : 'string' ,
@@ -139,16 +139,11 @@ async function run(
139139 // If given path is absolute then cwd should not affect it.
140140 cwd = path . resolve ( process . cwd ( ) , cwd )
141141
142- let [ orgSlug , defaultOrgSlug ] = await determineOrgSlug (
142+ let [ orgSlug ] = await determineOrgSlug (
143143 String ( orgFlag || '' ) ,
144144 interactive ,
145145 dryRun ,
146146 )
147- if ( ! defaultOrgSlug ) {
148- // Tmp. just for TS. will drop this later.
149- defaultOrgSlug = ''
150- }
151-
152147 const sockJson = await readOrDefaultSocketJson ( cwd )
153148
154149 if ( all === undefined ) {
You can’t perform that action at this time.
0 commit comments