# required modules
requires IO::All;


# creating tasks
task 'foo' => sub {
    my $self = shift;

    # setting a param
    param(foo => 'bar');


    # output text
    say "doing something";
    warn "test with warn here";
};

task 'bar' => sub {
    my $self = shift;

    # geting and output param
    my $key = 'foo';
    say "param $key => " . param($key) . "";


    # output text
    say "doing something";
    warn "warn here";


    # show task list
    say dumper $self->task_list;
};

task 'using io-all module here' => sub {
        "this is a simple test" >> io("test.log");
};
