aboutsummaryrefslogtreecommitdiff
path: root/cli/src/lib.rs
diff options
context:
space:
mode:
authorTill Höppner2016-03-16 15:18:20 +0100
committerTill Höppner2016-03-16 15:18:20 +0100
commit5cbe7a0042600793f65b86cc821bdd159de91071 (patch)
tree19573791bbb984424c63f8f3a9bebaba7a54d014 /cli/src/lib.rs
parent586461676df9abd2e011fbcb1bb7c784cdb2844c (diff)
downloadilc-5cbe7a0042600793f65b86cc821bdd159de91071.tar.gz
ilc-5cbe7a0042600793f65b86cc821bdd159de91071.tar.xz
ilc-5cbe7a0042600793f65b86cc821bdd159de91071.zip
Remove "seen" command
Its functionality can be imitated via a combination of --if nick --exactly ... and tail, with more flexibility, though a little less performant.
Diffstat (limited to 'cli/src/lib.rs')
-rw-r--r--cli/src/lib.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/cli/src/lib.rs b/cli/src/lib.rs
index ac31636..f4cc077 100644
--- a/cli/src/lib.rs
+++ b/cli/src/lib.rs
@@ -155,14 +155,6 @@ pub fn main(cli: Cli) {
.subcommand(SubCommand::with_name("stats")
.about("Analyse the activity of users by certain metrics")
.setting(AppSettings::AllowLeadingHyphen))
- .subcommand(SubCommand::with_name("seen")
- .about("Print the last line a nick was active")
- .setting(AppSettings::AllowLeadingHyphen)
- .arg(Arg::with_name("nick")
- .help("The nick you're looking for")
- .takes_value(true)
- .required(true)
- .index(1)))
.subcommand(SubCommand::with_name("sort")
.about("Sorts a log by time")
.setting(AppSettings::AllowLeadingHyphen))
@@ -246,16 +238,6 @@ pub fn main(cli: Cli) {
stats::output_as_json(&args, &cli, stats)
}
- ("seen", Some(args)) => {
- let e = Environment(&args);
- let nick = args.value_of("nick").expect("Required argument <nick> not present");
- ilc_ops::seen::seen(nick,
- &e.context(),
- &mut e.input(),
- &mut *e.decoder(),
- &mut *e.output(),
- &Weechat)
- }
("sort", Some(args)) => {
let e = Environment(&args);
ilc_ops::sort::sort(&e.context(),