mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-06 22:26:45 +00:00
15 lines
394 B
TypeScript
15 lines
394 B
TypeScript
import { Command } from 'commander'
|
|
import { freshenPocketbaseVersions } from '../freshenPocketbaseVersions'
|
|
|
|
type Options = {}
|
|
|
|
export const UpdateCommand = () => {
|
|
const cmd = new Command(`update`)
|
|
.description(`Update known PocketBase versions`)
|
|
.action(async (options: Options) => {
|
|
const cjs = await freshenPocketbaseVersions()
|
|
console.log(cjs)
|
|
})
|
|
return cmd
|
|
}
|