chore: addition to the previous commit
This commit is contained in:
@@ -6,19 +6,24 @@ import { Program } from './Program'
|
||||
|
||||
export class Info extends Program {
|
||||
async Exec(_: SimpleStream<string>, stdout: SimpleStream<string>, __: Item, ___: string[]): Promise<number> {
|
||||
stdout.emit(`binekrasik's Webshell\n`)
|
||||
stdout.emit(`Copyright (C) 2026 binekrasik.\n\n`)
|
||||
stdout.emit(`Webshell and its components are licensed under the Apache 2.0 license.\n`)
|
||||
stdout.emit(`Source available at https://git.martinpetr.dev/binekrasik/webshell.\n\n`)
|
||||
stdout.emit('\n')
|
||||
stdout.emit(" --> binekrasik's Webshell / ->\n\n")
|
||||
|
||||
stdout.emit(" Webshell and its components are licensed under the Apache 2.0 license unless stated otherwise.\n")
|
||||
stdout.emit(" Source available at https://git.martinpetr.dev/binekrasik/webshell.\n\n\n")
|
||||
|
||||
stdout.emit(" --> Versions / ->\n\n")
|
||||
stdout.emit(` Webshell ${WEBSHELL_VERSION}\n`)
|
||||
stdout.emit(` Terminal ${Terminal.Version}\n`)
|
||||
stdout.emit(` Shell '${GetCurrentTerminal().GetShell()?.Name}' version ${GetCurrentTerminal().GetShell()?.Version}\n\n\n`)
|
||||
|
||||
// print a comment for the current release (if any)
|
||||
if (INFO_COMMENT)
|
||||
stdout.emit(`${INFO_COMMENT}\n\n`)
|
||||
if (INFO_COMMENT) {
|
||||
stdout.emit(" --> Version comment / ->\n\n")
|
||||
stdout.emit(` ${INFO_COMMENT}\n\n\n`)
|
||||
}
|
||||
|
||||
stdout.emit(`-> Versions\n`)
|
||||
stdout.emit(` | Webshell ${WEBSHELL_VERSION}\n`)
|
||||
stdout.emit(` | Terminal ${Terminal.Version}\n`)
|
||||
stdout.emit(` | Shell '${GetCurrentTerminal().GetShell()?.Name}' version ${GetCurrentTerminal().GetShell()?.Version}\n\n`)
|
||||
stdout.emit(" - Copyright (C) 2026 binekrasik -\n\n")
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user