๐ Fix `channel rename` command to work with single <TO> argument
Dependencies
- [2]ย
Q4SVMHAERemoving --channel from the changes command - [3]ย
YWRFRDGU๐ Add explanations for channel rename/switch commands - [4]ย
QUMQPF6Lpijul channel rename arguments named after their purpose This makes it so that calling `pijul channel rename something` will be reflected as providing the "to" argument, not the "from" argument. The help output also shows the "from" argument being optional, rather than "to" being optional which did not match the way the rename worked. - [5]ย
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- edit in pijul/src/commands/channel.rs at line 27
#[clap(name = "rename", allow_missing_positional = true)] - replacement in pijul/src/commands/channel.rs at line 29
/// Name of source channel, if [TO] is not specified, acts as TOfrom: String,/// Name of the channel to be renamed. Defaults to current channel.from: Option<String>, - replacement in pijul/src/commands/channel.rs at line 32
to: Option<String>,to: String, - edit in pijul/src/commands/channel.rs at line 34
#[clap(name = "rename", allow_missing_positional = true)]Rename { from: Option<String>, to: String }, - resolve order conflict in pijul/src/commands/channel.rs at line 34