~timharek/d-yr

3a8040a0495af77ef5127a1f7951f92137c3c132 — Tim Hårek Andreassen 4 months ago d1dcfc3 v2.0.0
feat: Add completions command

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2 files changed, 6 insertions(+), 2 deletions(-)

M deps.ts
M src/cli.ts
M deps.ts => deps.ts +4 -1
@@ 1,4 1,7 @@
export { format } from 'https://deno.land/std@0.203.0/datetime/mod.ts';
export { parse } from 'https://deno.land/std@0.203.0/flags/mod.ts';
export * as Colors from 'https://deno.land/std@0.203.0/fmt/colors.ts';
export { Command } from 'https://deno.land/x/cliffy@v1.0.0-rc.3/command/mod.ts';
export {
  Command,
  CompletionsCommand,
} from 'https://deno.land/x/cliffy@v1.0.0-rc.3/command/mod.ts';

M src/cli.ts => src/cli.ts +2 -1
@@ 1,4 1,4 @@
import { Command } from '../deps.ts';
import { Command, CompletionsCommand } from '../deps.ts';
import {
  currentMessage,
  forecastMessage,


@@ 46,4 46,5 @@ await new Command()
  )
  .command('today <name:string>', todayCmd)
  .command('tomorrow <name:string>', tomorrowCmd)
  .command('completions', new CompletionsCommand())
  .parse(Deno.args);