Skip to content

Commit

Permalink
style: module exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan committed Sep 23, 2019
1 parent 98d0a31 commit 3129220
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/ssh/config/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import promptly from "promptly";

import { exists, generateSshKey, prompt, routerInfo, set } from ".";

export const check = async (): Promise<boolean> => {
const check = async (): Promise<boolean> => {
if (exists()) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ssh/config/generateSshKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import keygen, { KeyGenCreationData } from "ssh-keygen";

import { ConfigCreationData } from "../../../types";

export const generateSshKey = (
const generateSshKey = (
data: ConfigCreationData
): Promise<KeyGenCreationData> => {
const promise = new Promise<KeyGenCreationData>((resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ssh/config/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const line = async <T>(
});
};

export const prompt = async (): Promise<ConfigCreationData> => {
const prompt = async (): Promise<ConfigCreationData> => {
const yes = "y";
const yesNo = "Y/n";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/ssh/config/routerInfo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const routerInfo = (publicKey?: string) => {
const routerInfo = (publicKey?: string) => {
console.log(`
To use this CLI you need to enable SSH in your router.
Expand Down

0 comments on commit 3129220

Please sign in to comment.