[cli] refactor client ops to be received in struct