use std::collections::HashMap; /// Return map of /// This covers simple deprecated commands nicely, but it's not great for deprecating /// subcommands like `foo bar` where `foo` is still a valid command. /// For those, it's currently easiest to have a "stub" command that just returns an error. pub fn deprecated_commands() -> HashMap { HashMap::from([ ("keep".to_string(), "take".to_string()), ("match".to_string(), "find".to_string()), ("nth".to_string(), "select".to_string()), ("pivot".to_string(), "transpose".to_string()), ("unalias".to_string(), "hide".to_string()), ("all?".to_string(), "all".to_string()), ("any?".to_string(), "any".to_string()), ("empty?".to_string(), "is-empty".to_string()), ( "build-string".to_string(), "str join'/'string concatenation with '+'".to_string(), ), ("fetch".to_string(), "http get".to_string()), ("post".to_string(), "http post".to_string()), ("str lpad".to_string(), "fill".to_string()), ("str rpad".to_string(), "fill".to_string()), ("benchmark".to_string(), "timeit".to_string()), ]) }