Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more option supported #2

Open
cryhot opened this issue Feb 12, 2017 · 1 comment
Open

more option supported #2

cryhot opened this issue Feb 12, 2017 · 1 comment

Comments

@cryhot
Copy link
Owner

cryhot commented Feb 12, 2017

Plans

  • mill -q/--quiet : mute mill specific stdout (only given command will write on stdout)
  • mill --error : end loop whenever the command fails (returns the error code)
  • scale -m/--manual : faster (won't use gdb) but will require an other function parent-side
  • retrieve VAR[;VAR...] [...] reload shared variable(s) (use * for every variables)
  • retrieve -c : cancel reloading of these shared variables
  • mill -r VAR[;VAR...] : auto reload shared variable each cycle
  • track FILE : pause the script until the file is modified
  • mill -T/--timeout TIMEOUT : start a new cycle if the time is up (default 0, or ∞ if any CONDITION option - -T,-V,-F,-C)
  • mill -V/--track-var VAR[;VAR...] : start a new cycle when a tracked variable changes (imply -r VAR[;VAR...])
  • mill -F/--track-file FILE : start a new cycle when this file is modified
  • mill -C/--condition CONDITION : start a new cycle when the condition is fulfilled. CONDITION is a command which will be evaluate, and will be considered as fulfilled when $? is 0.

mill execution:

save TRACKED exec COMMAND wait PERIOD test CONDITIONS loop
-T,-V,-F COMMAND,-q,--error -p -T,-V,-F,-C
init comparisson values if --error and $?: return $? if any: goto wait PERIOD goto save TRACKED
@cryhot
Copy link
Owner Author

cryhot commented Apr 26, 2017

Most of these features have been implemented (except the ones related to variable manipulation).

  • mill -q/--quiet : introduced with -b/--unbuffered and -B/--buffered (see documentation)
  • track FILE : see documentation
  • mill -T/--timeout TIMEOUT : if the time is up since the beginning of the cycle, go to the next cycle
  • mill -F/--track-file FILE : if this file was modified during the current cycle, go to the next cycle
  • mill -C/--condition CONDITION : if this command succeeds, go to the next cycle

Still to be done (plus some new features) :

  • mill --error : end loop whenever the command fails (returns the error code)
  • mill --success : end loop whenever the command success
  • scale -m/--manual : faster (won't use gdb) but will require an other function parent-side
  • retrieve VAR[;VAR...] [...] : reload shared variable(s) (use * for every variables)
  • retrieve -c : cancel reloading of these shared variables
  • mill -r VAR[;VAR...] : auto reload shared variable each cycle
  • mill -V/--track-var VAR[;VAR...] : start a new cycle when a tracked variable changes (imply -r VAR[;VAR...])
  • mill -M/--manual : start a new cycle when the user press ENTER
  • track -p PERIOD : user-defined period (like for mill)

The new conditions options for mill would be : -M, -T, -V, -F, -C

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

No branches or pull requests

1 participant