Change the import scheme

This commit is contained in:
Chipmunk 2024-03-18 22:32:08 -04:00
parent c89271d021
commit 999b6812a7
3 changed files with 21 additions and 8 deletions

View file

@ -13,5 +13,15 @@ module.exports = {
FloatArgumentType,
IntegerArgumentType,
LongArgumentType,
StringArgumentType
StringArgumentType,
// Static methods (for convenience)
bool: BoolArgumentType.bool,
double: DoubleArgumentType.double,
integer: IntegerArgumentType.integer,
float: FloatArgumentType.float,
long: LongArgumentType.long,
word: StringArgumentType.word,
string: StringArgumentType.string,
greedyString: StringArgumentType.greedyString
}

View file

@ -5,5 +5,8 @@ const RequiredArgumentBuilder = require('./RequiredArgumentBuilder.js')
module.exports = {
ArgumentBuilder,
LiteralArgumentBuilder,
RequiredArgumentBuilder
RequiredArgumentBuilder,
literal: LiteralArgumentBuilder.literal,
argument: RequiredArgumentBuilder.argument
}

View file

@ -10,12 +10,12 @@ const LiteralMessage = require('./LiteralMessage.js')
const ParseResults = require('./ParseResults.js')
module.exports = {
arguments: _arguments,
builder,
context,
exceptions,
suggestion,
tree,
..._arguments,
...builder,
...context,
...exceptions,
...suggestion,
...tree,
CommandDispatcher,
LiteralMessage,
ParseResults,