${name}

NAME

Venus::Task::Venus::Gen - vns gen

ABSTRACT

Task Class for Venus CLI

SYNOPSIS

package main;

use Venus::Task::Venus::Gen;

my $task = Venus::Task::Venus::Gen->new;

# bless(.., 'Venus::Task::Venus::Gen')

DESCRIPTION

This package is a task class for the vns-gen CLI, and vns gen sub-command.

INHERITS

This package inherits behaviors from:

Venus::Task::Venus

METHODS

This package provides the following methods:

new

new(any @args) (Venus::Task::Venus::Gen)

The new method constructs an instance of the package.

Since 4.15

new example 1
package main;

use Venus::Task::Venus::Gen;

my $task = Venus::Task::Venus::Gen->new;

# bless({...}, 'Venus::Task::Venus::Gen')

perform

perform() (Venus::Task::Venus::Gen)

The perform method executes the CLI logic.

Since 4.15

perform example 1
# given: synopsis

package main;

$task->prepare;

my $perform = $task->perform;

# bless(.., 'Venus::Task::Venus::Gen')
perform example 2
# given: synopsis

package main;

$task->prepare;

$task->parse('--stdout', '--class');

my $perform = $task->perform;

# bless(.., 'Venus::Task::Venus::Gen')

# ...
perform example 3
# given: synopsis

package main;

$task->prepare;

$task->parse('--stdout', '--class', '--name', 'MyApp');

my $perform = $task->perform;

# bless(.., 'Venus::Task::Venus::Gen')

# ...
perform example 4
# given: synopsis

package main;

$task->prepare;

$task->parse('-pc', '--name', 'MyApp', '--method', 'execute');

my $perform = $task->perform;

# bless(.., 'Venus::Task::Venus::Gen')

# ...
perform example 5
# given: synopsis

package main;

$task->prepare;

$task->parse('-pc', '--name', 'MyApp', '--attr', 'domain', '--method', 'execute');

my $perform = $task->perform;

# bless(.., 'Venus::Task::Venus::Gen')

# ...

AUTHORS

Awncorp, awncorp@cpan.org

LICENSE

Copyright (C) 2022, Awncorp, awncorp@cpan.org.

This program is free software, you can redistribute it and/or modify it under the terms of the Apache license version 2.0.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 1978:

Unknown directive: =name