Skip to content

Commit

Permalink
feat: CLI execute object type
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Oct 19, 2020
1 parent 311c78b commit e04b0ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/daf-cli/src/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ program

// TODO handle anyOf
switch (propertySchema.type) {
case 'object':
question.type = 'input'
question.filter = (input: string) => JSON.parse(input === '' ? '{}' : input)
break
case 'string':
question.type = 'input'
break
Expand All @@ -72,7 +76,6 @@ program
break
// TODO
case 'array':
case 'object':
default:
console.log(`Method argument type ${propertySchema.type} not supported yet`)
process.exit(1)
Expand Down

0 comments on commit e04b0ee

Please sign in to comment.