Refactor: Decompose collect_actions()
Refactor: Decompose collect_actions()

Decompose collect_actions() to make the code easier to read and understand Also
rename validate_input() function to is_valid_input() since it return a boolean.

arecarn/dploy