aversini/fedtools — pull request #25 by bemson (2014-02-14 16:25:35+00:00)
Title: Salt fedtools main file

I've saltified fedtoools. It's been a learning experience, but the code works the same as your current version.

Mind you, this is _my_ program - meaning it's my interpretation of the flow in your code. The routes may not make sense. Of course they can be changed, but the logic should simply require oving - I tried to reduce the number of API calls which might direct navigation.

Of note, the commands were templated in the `baseCommandBranch` variable. There, each command has local flags: `logTime` (true), `exitCode` (0), and `isAsync` (true). During the "/action:on" state or the "/result:in" you can change these flags to control whether the time is displayed, set the exit code, and inform when the command is _not_ asynchronous. The template groups the logic for implementing the command and following up on it's return value - it seemed to make more sense to put it in the same group/state.

Gotta book for my trip, but wanted to file this for you to chew on. Do comment!!