forgex_cli_cla_m Module



Variables

Type Visibility Attributes Name Initial
type(cmd_t), public :: all_cmds(NUM_CMD)
type(flag_t), public :: all_flags(NUM_FLAGS)

Derived Types

type, public ::  cla_t

Components

Type Visibility Attributes Name Initial
type(arg_t), public :: arg_info
type(cmd_t), public :: cmd
integer, public :: flag_idx(NUM_FLAGS)
logical, public :: flags(NUM_FLAGS)
type(pattern_t), public, allocatable :: patterns(:)
type(cmd_t), public :: sub_cmd
type(cmd_t), public :: sub_sub_cmd

Type-Bound Procedures

procedure, public :: collect_flags => cla__collect_flags
procedure, public :: do_debug => cla__do_debug_subc
procedure, public :: do_find => cla__do_find_subc
procedure, public :: get_patterns => cla__get_patterns
procedure, public :: init => cla__initialize
procedure, public :: init_debug => cla__init_debug_subc
procedure, public :: init_find => cla__init_find_subc
procedure, public :: init_find_match => cla__init_find_match_subsubc
procedure, public :: read_cmd => cla__read_command
procedure, public :: read_subc => cla__read_subcommand
procedure, public :: read_subsubc => cla__read_sub_subcommand

Subroutines

private subroutine cla__collect_flags(cla)

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine cla__do_debug_subc(cla)

Processes the debug command, reads a subcommand, and calls the corresponding procedure.

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine cla__do_find_subc(cla)

Processes the debug command, reads a subcommand and a sub-subcommand, and calls the corresponding procedure.

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine cla__get_patterns(cla, offset)

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla
integer, intent(in) :: offset

private subroutine cla__init_debug_subc(cla)

Prepare subcommands for the debug command.

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine cla__init_find_match_subsubc(cla)

Prepare sub-subcommands for the match subcommand.

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine cla__init_find_subc(cla)

Prepare subcommands for the find command.

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine cla__initialize(cla)

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine cla__read_command(cla)

Read the first argument and match it with registered commands.

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine cla__read_sub_subcommand(cla)

Read the third argument and match it with registered sub-subcommands.

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine cla__read_subcommand(cla)

Read the second argument and match it with registered subcommands.

Arguments

Type IntentOptional Attributes Name
class(cla_t), intent(inout) :: cla

private subroutine init_commands()

Arguments

None

private subroutine init_flags()

This subroutine registers all the flags forgex-cli accepts for the flag_t type array all_flags.

Arguments

None