Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@ The main command `lpop <input>` intelligently determines the operation:
## Development Guidelines

- Use bun to build and install libraries don't use pnpm or npm

- Add dependencies as dev dependencies instead of direct dependencies using bun as this is a package distributed as a compiled cli
33 changes: 33 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@vitest/ui": "^3.2.4",
"bs58": "^6.0.0",
"chalk": "^5.4.1",
"clipboardy": "^4.0.0",
"commander": "^14.0.0",
"dotenv": "^17.2.0",
"git-url-parse": "^16.1.0",
Expand Down
52 changes: 52 additions & 0 deletions src/ask-messages.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* Quirky message templates for asking colleagues for environment variables
*/

const ASK_MESSAGES = [
"๐Ÿ™ Help a fellow developer out! I'm missing some environment variables:",
'๐Ÿšจ SOS! My .env file is feeling a bit empty. Could you help me with:',
'๐Ÿ”‘ Secret ingredient missing! Hook me up with these variables:',
'๐ŸŽญ Playing hide and seek with some env vars. Mind sharing:',
'๐Ÿ” Environment variable detective work needed! Please share:',
'๐Ÿ’Ž Looking for these precious environment gems:',
'๐Ÿงฉ Missing puzzle pieces for my environment! Can you provide:',
'๐ŸŽช Step right up and share these magical variables:',
'๐Ÿดโ€โ˜ ๏ธ Ahoy! Seeking treasure (aka environment variables):',
'๐ŸŒŸ Calling all env var wizards! I need these spells:',
'๐ŸŽฏ Target acquired: environment variables. Please deploy:',
'๐Ÿ”ฎ Crystal ball says I need these variables. Can you share:',
'๐ŸŽจ Painting my environment, but missing these colors:',
'๐Ÿš€ Mission control, requesting these variables for launch:',
'๐ŸŽต My environment is singing the blues without these vars:',
'๐Ÿ• My development environment is hungry for these toppings:',
'๐ŸŽฒ Rolling the dice and hoping you can share these variables:',
'๐Ÿ† Champion env var sharer needed! Please provide:',
'๐ŸŽช The greatest show on earth needs these environment variables:',
'๐Ÿ”ฅ My build is fire, but it needs these variables to ignite:',
];

/**
* Gets a random quirky message template
*/
export const getRandomAskMessage = (): string => {
const randomIndex = Math.floor(Math.random() * ASK_MESSAGES.length);
return ASK_MESSAGES[randomIndex];
};

/**
* Formats the complete ask message with public key
*/
export const formatAskMessage = (
publicKey: string,
serviceName: string,
environment?: string,
): string => {
const quirkMessage = getRandomAskMessage();
const envSuffix = environment ? ` [${environment}]` : '';

return `${quirkMessage}

Repository: ${serviceName}${envSuffix}

lpop give ${publicKey}`;
};
Loading
Loading