@nodescript/cli
Version:
NodeScript CLI
31 lines • 858 B
JavaScript
import { Schema } from 'airtight';
export const CliModuleGroupSchema = new Schema({
type: 'object',
properties: {
pattern: { type: 'string' },
channelId: { type: 'string' },
sourceUrl: { type: 'string' },
channel: {
type: 'string',
default: 'universe',
},
visibility: {
type: 'string',
enum: ['private', 'public'],
default: 'public',
},
}
});
export const CliOptionsSchema = new Schema({
type: 'object',
properties: {
modules: {
type: 'array',
items: CliModuleGroupSchema.schema,
},
apiUrl: { type: 'string', default: 'https://hub.nodescript.dev' },
apiToken: { type: 'string' },
workspaceId: { type: 'string' },
}
});
//# sourceMappingURL=options.js.map