import { LineResults } from "../LineResults" ; import { CommandNames } from "../Names/CommandNames" ; import { Command } from "./Command" ; import { CommandMetadata } from "./Metadata/CommandMetadata" ; import { RepeatingParameters } from "./Metadata/Parameters/RepeatingParameters" ; import { SingleParameter } from "./Metadata/Parameters/SingleParameter" ; /**
 * Prints the input parameters directly.
 */ export class LiteralCommand extends Command { /**
     * Metadata on the command.
     */ private static metadata : CommandMetadata = new CommandMetadata ( CommandNames . Literal ) . withDescription ( "Prints the input parameters directly" ) . withParameters ( [ new RepeatingParameters ( "Contents to print" , [ new SingleParameter ( "word" , "A word to print." , false ) ] ) ] ) ; returns public getMetadata ( ) { return LiteralCommand . metadata ; } param parameters returns public render ( parameters ) { return LineResults . newSingleLine ( parameters . slice ( 1 ) . join ( " " ) ) ; } }