Skip to content

Commit

Permalink
🎆🎆 It works!!! 🥳🎉🥳
Browse files Browse the repository at this point in the history
Embarrasing as it is I totally missed the part where logic was to be in.
  • Loading branch information
aFuzzyBear authored and Nate Moore committed Apr 6, 2022
1 parent bc69133 commit 9f75b5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/astro/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function printAstroHelp() {
headline: 'Futuristic web development tool.',
commands: [
['add', 'Add an integration to your configuration.'],
['docs', 'Launch Astro\'s Doc site from the terminal '],
['docs', 'Launch Astro\'s Doc site from the terminal. '],
['dev', 'Run Astro in development mode.'],
['build', 'Build a pre-compiled production-ready site.'],
['preview', 'Preview your build locally before deploying.'],
Expand Down Expand Up @@ -60,6 +60,7 @@ async function printVersion() {
function resolveCommand(flags: Arguments): CLICommand {
const cmd = flags._[2] as string;
if (cmd === 'add') return 'add';
if (cmd === 'docs') return 'docs';

if (flags.version) return 'version';
else if (flags.help) return 'help';
Expand Down Expand Up @@ -149,6 +150,7 @@ export async function cli(args: string[]) {
case 'docs':{
try{
await browser('https://docs.astro.build/')
process.exit(0)
}catch(err){
throwAndExit(err)
}
Expand Down

0 comments on commit 9f75b5a

Please sign in to comment.