Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔥 chore(core): Remove unnecessary note from the CLI #970

Merged
merged 1 commit into from
Oct 31, 2023
Merged
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
15 changes: 2 additions & 13 deletions packages/core/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,14 @@ interface CliFlags {
force: boolean
}

const dirArgumentWarning = [
chalk.yellowBright`[TEMPORARY NOTE: You`,
chalk.red.bold` HAVE `,
chalk.yellowBright`to create this directory`,
chalk.red.bold` YOURSELF!`,
chalk.yellowBright`]`
].join('')

// TODO: Add unit tests for the CLI!
export const main = async () => {
console.log(`⚠️ ${chalk.yellowBright`The CLI is in alpha so expect breaking changes!`} ⚠️\n`)

const program = new Command()
.name(chalk.magenta('core'))
.description('A CLI for building the cache of wallet setup functions')
.argument(
'[dir]',
`Directory containing the wallet setup functions ${dirArgumentWarning}`,
path.join('test', WALLET_SETUP_DIR_NAME)
)
.argument('[dir]', 'Directory containing the wallet setup functions', path.join('test', WALLET_SETUP_DIR_NAME))
.option(
'--headless',
'Build cache in the headless browser mode. Alternatively, set the `HEADLESS` env variable to `true`',
Expand Down