@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
38 lines (36 loc) • 1.16 kB
text/typescript
import { buildSchema } from '@sprucelabs/schema'
export default buildSchema({
id: 'upgradeSkillOptions',
name: 'Upgrade skill action',
description:
'Upgrade. Everything. Heads up, this can take a few minutes. ⏱',
fields: {
shouldBuild: {
type: 'boolean',
label: 'Build after upgrade',
defaultValue: true,
hint: 'Should I build your source after the upgrade?',
},
upgradeMode: {
type: 'select',
label: 'Upgrade mode',
defaultValue: 'askForChanged',
options: {
choices: [
{
value: 'askForChanged',
label: 'Ask for changed files',
},
{
value: 'forceEverything',
label: 'Force everything',
},
{
value: 'forceRequiredSkipRest',
label: 'Force required (skipping all non-essential)',
},
],
},
},
},
})