add oneshot option and command, and resume command

oneshot makes all sources to be updated once and can be issued again.
resume makes the updating process resumed.