jaster.cli.core

The default core provided by JCLI, the 'heart' of your command line tool.

Members

Aliases

IgnoreFirstArg
alias IgnoreFirstArg = Flag!"ignoreFirst"

Classes

CommandLineInterface
class CommandLineInterface(Modules...)

Provides the functionality of parsing command line arguments, and then calling a command.

Enums

CommandArgAction
enum CommandArgAction

Attach any value from this enum onto an argument to specify what parsing action should be performed on it.

Functions

addCommandLineInterfaceService
ServiceInfo addCommandLineInterfaceService()
ServiceInfo[] addCommandLineInterfaceService(ServiceInfo[] services)
containsHelpArgument
bool containsHelpArgument(ArgPullParser args)
Undocumented in source. Be warned that the author may not have intended to support it.
matchSpacefullPattern
bool matchSpacefullPattern(string pattern, ArgPullParser parser, AllowPartialMatch allowPartial)
Undocumented in source. Be warned that the author may not have intended to support it.
matchSpacelessPattern
bool matchSpacelessPattern(string pattern, string toTestAgainst)
Undocumented in source. Be warned that the author may not have intended to support it.

Imports

Nullable (from std.typecons)
public import std.typecons : Nullable;
Undocumented in source.

Interfaces

ICommandLineInterface
interface ICommandLineInterface

A service that allows commands to access the CommandLineInterface.parseAndExecute function of the command's CommandLineInterface.

Structs

Command
struct Command

Attach this to any struct/class that represents a command.

CommandArgGroup
struct CommandArgGroup

Attach this to any member field to add it to a help text group.

CommandDefault
struct CommandDefault

Attach this to any struct/class that represents the default command.

CommandLineSettings
struct CommandLineSettings

Settings that can be provided to CommandLineInterface to change certain behaviour.

CommandNamedArg
struct CommandNamedArg

Attach this to any member field to mark it as a named argument.

CommandPositionalArg
struct CommandPositionalArg

Attach this to any member field to mark it as a positional argument.

CommandRawArg
struct CommandRawArg

Attach this onto a string[] member field to mark it as the "raw arg list".

Meta