Skip to content

Commit

Permalink
feat: add update notifier (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored Oct 18, 2023
1 parent 346ab46 commit 9bd4b78
Show file tree
Hide file tree
Showing 3 changed files with 801 additions and 14 deletions.
7 changes: 6 additions & 1 deletion bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import sade from 'sade'
import open from 'open'
import updateNotifier from 'update-notifier'
import { getPkg } from './lib.js'
import {
accessClaim,
Expand Down Expand Up @@ -30,10 +31,14 @@ import {
uploadRemove
} from './can.js'

const pkg = getPkg()

updateNotifier({ pkg }).notify()

const cli = sade('w3')

cli
.version(getPkg().version)
.version(pkg.version)
.example('authorize user@example.com')
.example('up path/to/files')

Expand Down
Loading

0 comments on commit 9bd4b78

Please sign in to comment.