deontologician / spaceship-build

Sci-fi spaceship engineering simulation
GNU Affero General Public License v3.0
5 stars 1 forks source link

Basic CommandLine implementation #31

Closed deontologician closed 10 years ago

deontologician commented 10 years ago

This is the first (concrete) step towards building the CLI of our dreams as detailed in #1.

This issue is basically a simple task of using the cmd module.

In addition, we should have two basic commands implemented:

broadcast <topic> <message> will broadcast a message on from the terminal to any attached Buses. subscribe <topic_key> will set up the terminal so any messages matching the topic key will be printed to the console.

xXxH3LIOSxXx commented 10 years ago

Cool, shall we make pull requests off of whatever @MangroveCuckoo makes, etc?

deontologician commented 10 years ago

Yeah, once the basic commandline is implemented and merged into master, anyone can add new commands to it any time.

xXxH3LIOSxXx commented 10 years ago

Cool, are we going to work off the single .py that's in the repo now, or start fresh?

On Tue, Aug 12, 2014 at 9:58 PM, Josh Kuhn notifications@github.com wrote:

Yeah, once the basic commandline is implemented and merged into master, anyone can add new commands to it any time.

— Reply to this email directly or view it on GitHub https://github.com/deontologician/spaceship-build/issues/31#issuecomment-52004507 .

deontologician commented 10 years ago

The commandline is going to go into commandline.py, so that there's less risk of collision. I put everything into the single file initially because it was just me, but if you want to split something out into another file go ahead

deontologician commented 10 years ago

My opinion is very "try it and see", usually once it's done it's easier to go "yes this works" or "hmm, this isn't right", rather than speculate up front