add timestamp_validator to tag --timestamp option
[?]
May 24, 2021, 3:32 PM
3FTEGCMRMELPIJRUKNKRTA5TDBXEOTOOVRUTZJ7DWD27ZTKKMV3QCDependencies
- [2]
NS36CJCOValidating timestamps in record - [3]
QL6K2ZM3Tags - [4]
AAXP2534Tags: completing the subcommand - [5]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [6]
4H2XTVJ2Fix some mistakes in the docs
Change contents
- edit in pijul/src/commands/tag.rs at line 5
use crate::commands::record::timestamp_validator; - replacement in pijul/src/commands/tag.rs at line 36
#[clap(long = "timestamp")]#[clap(long = "timestamp", validator = timestamp_validator)] - replacement in pijul/src/commands/record.rs at line 57
fn timestamp_validator(s: &str) -> Result<(), &'static str> {pub(crate) fn timestamp_validator(s: &str) -> Result<(), &'static str> {