Skip to content

Commit 3dc9dcb

Browse files
committed
fixup! Resolve duplicated code in cli args, remove project arg
1 parent e2e3529 commit 3dc9dcb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • tools/client-subscriptions-management/src/entrypoint/interactive

tools/client-subscriptions-management/src/entrypoint/interactive/shared.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ export interface ConnectionConfig {
2020
export type Repository = ReturnType<typeof createClientSubscriptionRepository>;
2121

2222
export const buildConnectionArgs = (connection: ConnectionConfig): string[] => {
23-
const args: string[] = [
24-
"--bucket-name",
25-
connection.bucketName,
26-
];
23+
const args: string[] = ["--bucket-name", connection.bucketName];
2724
if (connection.region) args.push("--region", connection.region);
2825
if (connection.profile) args.push("--profile", connection.profile);
2926
return args;
@@ -56,7 +53,6 @@ export async function promptConnection(): Promise<ConnectionConfig> {
5653
});
5754
const profile = profileRaw.trim() || undefined;
5855

59-
6056
const bucketNameRaw = await input({
6157
message: "S3 bucket name (blank to derive from environment name):",
6258
default: "",

0 commit comments

Comments
 (0)