@sodacore/cli
Version:
Sodacore CLI is a plugin that offers CLI functionality within the framework.
22 lines (21 loc) • 405 B
JavaScript
export default class PromptCollection {
constructor() {
this.items = [];
}
text(item) {
this.items.push(item);
return this;
}
select(item) {
this.items.push(item);
return this;
}
confirm(item) {
this.items.push(item);
return this;
}
multiselect(item) {
this.items.push(item);
return this;
}
}