import { BudgieUtilities } from "../../BudgieUtilities" ; import { LineResults } from "../LineResults" ; import { CommandNames } from "../Names/CommandNames" ; import { Command } from "./Command" ; import { CommandMetadata } from "./Metadata/CommandMetadata" ; /**
 * Prints the name of the language's main standalone functions group.
 */ export class MainGroupCommand extends Command { /**
     * Metadata on the command.
     */ private static metadata : CommandMetadata = new CommandMetadata ( CommandNames . MainGroup ) . withDescription ( "Prints the name of the language's main standalone functions group." ) ; returns public getMetadata ( ) { return MainGroupCommand . metadata ; } param parameters returns public render ( parameters ) { const fileName = this . context . getFileMetadata ( ) . getFileName ( ) ; const group = BudgieUtilities . stringReplaceAll ( this . language . syntax . main . group , "{0}" , fileName ) ; return LineResults . newSingleLine ( group ) ; } }