cli: Add a command line argument for commands to run at startup

Review Request #3805 — Created Feb. 1, 2025 and updated — Latest diff uploaded

Information

ibis/ibis
default

Reviewers

The argument can be specified multiple times and will be run in the order
provided. These will also be ran before the join-channels argument which
should probably be deprecated at this point, but we'll leave it for now.

Here is an example invocation I used for testing where I changed my nick,
joined a channel, and messaged another user.

$ ./ibis-cli/ibis-cli -s 192.168.1.220 -n cli1 -c "NICK cli2" -c "JOIN #pidgin" -c "PRIVMSG senpai_ :sup?"

Used the above mentioned command and verified all those things happened.

Commits

Files