@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
45 lines (39 loc) • 1.74 kB
text/typescript
import { SchemaRegistry } from '@sprucelabs/schema'
import { SpruceSchemas } from '../../schemas.types'
const syncSchemaFieldsOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemaFieldsOptionsSchema = {
id: 'syncSchemaFieldsOptions',
version: 'v2020_07_22',
namespace: 'SpruceCli',
name: 'syncSchemaFieldsOptions',
description: 'Sync schema fields so you can use schemas!',
fields: {
/** Field types directory. Where field types and interfaces will be generated. */
'fieldTypesDestinationDir': {
label: 'Field types directory',
type: 'text',
isPrivate: true,
hint: 'Where field types and interfaces will be generated.',
defaultValue: "#spruce/schemas",
options: undefined
},
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
'addonsLookupDir': {
label: 'Addons lookup directory',
type: 'text',
hint: 'Where I\'ll look for new schema fields to be registered.',
defaultValue: "src/addons",
options: undefined
},
/** Generate field types. Should I generate field types too? */
'generateFieldTypes': {
label: 'Generate field types',
type: 'boolean',
isPrivate: true,
hint: 'Should I generate field types too?',
defaultValue: true,
options: undefined
},
}
}
SchemaRegistry.getInstance().trackSchema(syncSchemaFieldsOptionsSchema)
export default syncSchemaFieldsOptionsSchema