@eightshone/sshman
Version:
A simple cli ssh manager
40 lines (38 loc) β’ 1.3 kB
text/typescript
import { homedir } from "os";
import { config } from "./types";
import packageJson from "../../package.json";
export const VERSION: string = packageJson.version;
export const DEFAULT_CONFIG: config = {
servers: [],
recentServers: [],
defaults: {
privateKey: `${homedir()}/.ssh/id_rsa`,
port: 22,
autoSavePrefix: "auto-save",
},
};
export const GOODBYES: string[] = [
"Thanks for stopping by! Take care! π",
"See you next time! π",
"Bye for now! Stay awesome! π",
"Take care and have a great day! π",
"Catch you later! πβ¨",
"Farewell, and donβt forget to smile! π",
"Until we meet again! πΎ",
"Thanks for chatting! Bye-bye! π¬",
"Wishing you all the best! π",
"Goodbye and stay safe! β€οΈ",
"See you later, alligator! π",
"Peace out! βοΈ",
"Take it easy! Bye! π§ββοΈ",
"Au revoir! Keep smiling! π",
"Bye-bye! Keep shining! β¨",
"Goodbye! Have a fantastic day! π₯³",
];
export const CONFIG_DIR = `${homedir()}/.sshman`;
export const CONNECTION_REGEX = /^(.*?)(?::(.*?))?@(.*?)(?::(\d+))?$/;
export const UPDATE_COMMANDS = {
yarn: "yarn global add @eightshone/sshman",
npm: "npm install -g @eightshone/sshman",
pnpm: "pnpm add -g @eightshone/sshman",
};