Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
GGonryun committed Feb 24, 2024
1 parent 7d52709 commit f0d6069
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/commands/ssh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ import { getDoc, onSnapshot } from "firebase/firestore";
import { pick } from "lodash";
import yargs from "yargs";

/** Maximum amount of time to wait after access is approved to wait for access
* to be configured
*/
const GRANT_TIMEOUT_MILLIS = 60e3;

type SshCommandArgs = {
instance: string;
command?: string;
L?: string;
arguments: string[];
};

/** Maximum amount of time to wait after access is approved to wait for access
* to be configured
*/
const GRANT_TIMEOUT_MILLIS = 60e3;

export const sshCommand = (yargs: yargs.Argv) =>
yargs.command<SshCommandArgs>(
"ssh <instance> [command [arguments..]]",
Expand Down Expand Up @@ -151,7 +151,6 @@ const ssh = async (args: yargs.ArgumentsCamelCase<SshCommandArgs>) => {
const { id, isPreexisting } = response;
if (!isPreexisting) print2("Waiting for access to be provisioned");
const requestData = await waitForProvisioning<AwsSsh>(authn, id);

await ssm(authn, {
...requestData,
id,
Expand Down

0 comments on commit f0d6069

Please sign in to comment.