* refactor: move send_command macro into a function The macro accepts expressions with the same datatype in all invocations. Moving it into a function helps language servers make inferences easier because the expressions become concrete types. * lint: cargo fmt