eos icon indicating copy to clipboard operation
eos copied to clipboard

Make eosc easier to use

Open nathanielhourt opened this issue 9 years ago • 9 comments

OK, so eosc is really rough right now, both from an architecture perspective, and from a usability perspective. The former isn't super critical, but it's still nice to improve; however, the latter is a showstopper.

Improve eosc usability by making clear and complete help information available.

  • [x] Update eosc to be fully self-documenting
  • [x] Update any docs impacted by these changes

nathanielhourt avatar Aug 17 '17 22:08 nathanielhourt

Since I had a hand in both of those conditions, please let me know if there is anything I can do to help out. Or maybe just to explain why something was done the way it was.

pmesnier avatar Aug 17 '17 22:08 pmesnier

Thanks, Phil! Mostly I want to make sure I don't leave behind any use cases it currently supports. I think that probably means the batch processing mode, which I don't fully understand the purpose or effect of. What is that feature for, and why do we need it?

nathanielhourt avatar Aug 17 '17 22:08 nathanielhourt

As I was starting to make some scripted tests that would exercise the p2p network code, I found myself wanting to feed commands to it via more traditional unix streaming services, with the command line arguments being reserved for traditional command line options. Just like you are not fond of virtual inheritance, I'm not fond of unnecessarily starting serial copies of a program.

In fact, batch mode isn't operational. I couldn't come up with a use case, so I stopped short of having to test and document it. The streaming feature is line-oriented, although multi-line commands are supported though the use of quoted strings. I also preserved the original behavior as well. The major refactoring I did was to move the command processing out of main to make it easier to deal with alternate input sources.

Given your concern about usability I think it would be reasonable to take what I did and make a differently named program. maybe eosst?

pmesnier avatar Aug 17 '17 22:08 pmesnier

FYI: I will be doing a pull request soon with changes to the "transactions" command in eosc.

brianjohnson5972 avatar Aug 18 '17 14:08 brianjohnson5972

OK, this should be pretty much complete at this point, thought there may be other docs to update that I don't know about.

nathanielhourt avatar Aug 24 '17 20:08 nathanielhourt

Preq #221

nathanielhourt avatar Aug 24 '17 20:08 nathanielhourt

I'm looking for the most appropriate way to override the default host/port to which eosc sends the messages. I've thought of: eosc --server host:port command ...,
eosc @host:port commmand ... eosc command@host:port ....

in each case, an omitted host or port value is defaulted. In the case of streaming mode, I'd like this value to be changeable

@nathanhourt are you still actively refactoring eosc?

pmesnier avatar Aug 29 '17 10:08 pmesnier

cleaning up old assignments

thomasbcox avatar Oct 04 '17 14:10 thomasbcox

This was merged, closing.

heifner avatar Oct 18 '17 21:10 heifner