lotfio/conso

Simplify with one line chain output

Nejcc opened this issue · 1 comments

Nejcc commented

Change interface to abstraction to allow return new self; to do the job of one chain insted separate line of same output

$this->output->writeLn(Conf::conso('APP_NAME'), 'yellow')
            ->writeLn(' version '.Conf::conso('APP_VERSION'))
            ->writeLn(' '.Conf::conso('APP_RELEASE_DATE')."\n\n", 'green')
            ->writeLn("Usage :\n\n", 'yellow')
            ->writeLn("  command:subcommand [options] [flags] \n\n")
            ->writeLn("Options, flags :\n\n", 'yellow');

This has no relation with the interface or abstraction its just method chaining ! Will see how usful it will be and add it. Thanks for request !