PhpMigration\App::commandList PHP Method

commandList() protected method

protected commandList ( )
    protected function commandList()
    {
        $setlist = iterator_to_array(new \RegexIterator(new \FilesystemIterator($this->setpath), '/\\.json$/'));
        ksort($setlist);
        foreach ($setlist as $setfile) {
            $info = json_decode(file_get_contents($setfile));
            printf("%-10s => %s\n", strstr($setfile->getBasename(), '.', true), $info->desc);
        }
    }