Web::MREST::CLI::Parser(3pm)

Web::MREST::CLI::Parser3pm

Parser for demo mrest command line client

Usage

    use Try::Tiny;
    
    my $status;
    my @tokens = split /\s+/, 'MY SAMPLE COMMAND';
    try { 
        Web::MREST::CLI::Parse::parse_tokens( [], \@tokens ); 
    } catch { 
        $status = $_; 
    };

Cli commands

The parsing of CLI commands takes place in the "parse_tokens" function, which calls itself recursively until it gets to a rather macabre-sounding

    die send_req . . .

This causes control to return to the while loop in "bin/mrest-cli" with the return value of the "send_req", which is a status object.

All tokens should be chosen to be distinguishable by their first three characters.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9–10
  2. 11
  3. 12–13

From libweb-mrest-cli-perl 0.284-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.