package
0.0.0-20241228112321-7551c244121d
Repository: https://github.com/opennox/libs.git
Documentation: pkg.go.dev

# Functions

AsClient marks the commands as executed client-side.
AsDedicated marks the commands as executed in a dedicated server context.
AsServer marks the commands as executed server-side.
CurCommand gets current command string that is being executed.
EncodeSecret encodes a command token so it's kept secret.
IsCheats checks if this context allows cheat execution.
IsClient checks if it's a client-side command context.
IsDedicated checks if it's a dedicated server command context.
IsServer checks if it's a server-side command context.
LogPrinter returns a printer that writes to a given logger.
New creates a new console handler.
NewMultiPrinter prints into multiple printers at once.
WithCheats forces a cheats-enabled flag for this context.

# Constants

Cheat marks a command as a cheat, thus requiring enabling cheats first.
Client flag allows using this command on the client.
ClientServer flag allows using this command on both the server and the client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NoHelp hides the command from the commands list printed by help.
Secret flag is used when the command token should be encrypted.
Server flag allows using this command on the server.

# Structs

Command describes a console command.
Console handles console commands.
No description provided by the author

# Interfaces

LocalizedPrinter is an interface used for command output.
Printer is an interface used for command output.

# Type aliases

Color of console text messages.
CommandFunc accepts a set of string arguments (tokens) and executes some action.
CommandLegacyFunc is the same as CommandFunc, but accepts the full array of tokens and a index of the first token that is the first argument for the command.
No description provided by the author
Flags represents console command flags.