import { LineResults } from "../LineResults" ; import { CommandNames } from "../Names/CommandNames" ; import { Command } from "./Command" ; import { CommandMetadata } from "./Metadata/CommandMetadata" ; import { SingleParameter } from "./Metadata/Parameters/SingleParameter" ; /**
 * Complains on unsupported syntax.
 */ export class UnsupportedCommand extends Command { /**
     * Metadata on the command.
     */ private static metadata : CommandMetadata = new CommandMetadata ( CommandNames . Unsupported ) . withDescription ( "Complains on unsupported syntax" ) . withParameters ( [ new SingleParameter ( "reason" , "Explanation for why the syntax is unsupported." , true ) ] ) ; returns public getMetadata ( ) { return UnsupportedCommand . metadata ; } param parameters returns public render ( parameters ) { throw new Error ( "Unsupported syntax: " + parameters [ 0 ] ) ; } }