Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commands and subcommands #45

Open
KarelWintersky opened this issue Apr 2, 2018 · 0 comments
Open

Commands and subcommands #45

KarelWintersky opened this issue Apr 2, 2018 · 0 comments

Comments

@KarelWintersky
Copy link

KarelWintersky commented Apr 2, 2018

How to create this console router?

myscript.php zone <command> <args>

Command can be: import and export.
<args> can be path or id

Some problems:

zone 

must print list of available commands (like 'Available commands: import, export')

zone import (without any other args)

must print help for zone import command (like 'usage zone import /path/to/file.json`)

zone export

must print help for zone export command (like 'usage zone export ')

and now

zone import file.json

or

zone export 100

must launch any one or two functions from \Foo\Bar class

How can i do this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant