Skip to content

Commit

Permalink
use templates in arkiver init
Browse files Browse the repository at this point in the history
  • Loading branch information
hazelnutcloud committed Apr 10, 2023
1 parent 2f74721 commit 7673401
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 550 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- feat: Loggers are now passed to event handlers instead of being global.
- feat: You can now configure custom loggers by calling `log.setup` before running the Arkiver instance.
- feat: You can now configure the log level for the default console logger by passing in the `--log-level` flag to the `arkiver start` command.
- feat: Enhanced the `arkiver init` command. You can now choose which template you want to initialize your arkive with. Templates are stored in the `examples` directory.
- chore: Clean up logging
- fix: several bugfixes related to wildcard event handlers

Expand Down
3 changes: 1 addition & 2 deletions cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from './cli/mod.ts'
import 'https://deno.land/[email protected]/dotenv/load.ts'

export const version = 'v0.3.8'
export const version = 'v0.4.0'

const command = new Command()
.name('arkiver')
Expand Down Expand Up @@ -92,7 +92,6 @@ command
// init
command
.command('init', 'Initialize a new arkive project')
.arguments('<dir:string>')
.option('--overwrite', 'Overwrite existing files')
.action(async (opts, ...args) => {
util.logHeader(version)
Expand Down
10 changes: 8 additions & 2 deletions cli/deps.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
export { z } from 'https://esm.sh/[email protected]'
export { Command } from 'https://deno.land/x/[email protected]/command/mod.ts'
export { Input, Secret } from 'https://deno.land/x/[email protected]/prompt/mod.ts'
export {
Input,
prompt,
Secret,
Select,
Toggle,
} from 'https://deno.land/x/[email protected]/prompt/mod.ts'
export {
createClient,
SupabaseClient,
} from 'https://esm.sh/@supabase/[email protected]'
export { wait } from 'https://deno.land/x/[email protected]/mod.ts'
export { default as $ } from 'https://deno.land/x/dax@0.28.0/mod.ts'
export { default as $ } from 'https://deno.land/x/dax@0.31.0/mod.ts'
export { delay } from 'https://deno.land/[email protected]/async/mod.ts'
export { join } from 'https://deno.land/[email protected]/path/mod.ts'
export { serve } from 'https://deno.land/[email protected]/http/server.ts'
Expand Down
Loading

1 comment on commit 7673401

@vercel
Copy link

@vercel vercel bot commented on 7673401 Apr 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.