Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ interface RunServerOptions {
port: number
verbose: boolean
business: boolean
enterprise: boolean
manual: boolean
rateLimit?: number
rateLimitWait: boolean
Expand All @@ -31,6 +32,9 @@ export async function runServer(options: RunServerOptions): Promise<void> {
if (options.business) {
state.accountType = "business"
consola.info("Using business plan GitHub account")
} else if (options.enterprise) {
state.accountType = "enterprise"
consola.info("Using enterprise plan GitHub account")
}

state.manualApprove = options.manual
Expand Down Expand Up @@ -82,6 +86,11 @@ const start = defineCommand({
default: false,
description: "Use a business plan GitHub Account",
},
enterprise: {
type: "boolean",
default: false,
description: "Use a enterprise plan GitHub Account",
},
manual: {
type: "boolean",
default: false,
Expand Down Expand Up @@ -118,6 +127,7 @@ const start = defineCommand({
port,
verbose: args.verbose,
business: args.business,
enterprise: args.enterprise,
manual: args.manual,
rateLimit,
rateLimitWait: Boolean(args.wait),
Expand Down