Skip to content

Commit d602cc5

Browse files
Merge pull request #23 from RoboVault/feat/public_by_default
CLI Update: Deploy arkives as private by default
2 parents 1f5f623 + a46b739 commit d602cc5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ command.command('logout', 'Logout from RoboArkiver').action(logout.action)
5151
// deploy
5252
command
5353
.command('deploy', 'Deploy arkive')
54-
.option('--public', 'Make arkive public')
54+
.option('--private', 'Make arkive private')
5555
.option('--major', 'Deploy as major version')
5656
.option('--env <env:string>', 'Environment to deploy to')
5757
.arguments('<dir:string>')

cli/deploy/mod.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { pkg } from './pkg.ts'
77
import { upload } from './upload.ts'
88

99
export const action = async (
10-
options: { public?: true; major?: true; env?: string },
10+
options: { private?: true; major?: true; env?: string },
1111
directory: string,
1212
) => {
1313
const dev = options.env?.toLowerCase() === 'dev'
@@ -80,7 +80,7 @@ export const action = async (
8080
}
8181

8282
const deployDev = async (
83-
options: { public?: true; major?: true },
83+
options: { private?: true; major?: true },
8484
directory: string,
8585
) => {
8686
const manifestPath = join(Deno.cwd(), directory, 'manifest.ts')

cli/deploy/upload.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const upload = async (
77
pkgName: string,
88
tempPath: string,
99
manifest: ArkiveManifest,
10-
options: { public?: true; major?: true; env?: string },
10+
options: { private?: true; major?: true; env?: string },
1111
) => {
1212
spinner().text = 'Uploading...'
1313
const { session } = await getSupabaseClientAndLogin()
@@ -23,7 +23,7 @@ export const upload = async (
2323
'pkg',
2424
new File([await Deno.readFile(filePath)], pkgName),
2525
)
26-
if (options.public) {
26+
if (options.private === undefined) {
2727
formData.append('isPublic', 'on')
2828
}
2929
if (options.major) {

0 commit comments

Comments
 (0)