mirror of
https://github.com/nushell/nushell.git
synced 2025-04-27 14:48:21 +02:00
# Description Provides the ability convert from and to plist format. <img width="1250" alt="Screenshot 2024-08-05 at 10 21 26" src="https://github.com/user-attachments/assets/970f3366-eb70-4d74-a396-649374556f66"> <img width="730" alt="Screenshot 2024-08-05 at 10 22 38" src="https://github.com/user-attachments/assets/6ec317d0-686e-47c6-bf35-8ab6e5d802db"> # User-Facing Changes - Introduction of `from plist` command - Introduction of `to plist`command --------- Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
31 lines
651 B
Rust
31 lines
651 B
Rust
mod from;
|
|
mod to;
|
|
|
|
use nu_plugin::{Plugin, PluginCommand};
|
|
|
|
use from::eml::FromEml;
|
|
use from::ics::FromIcs;
|
|
use from::ini::FromIni;
|
|
use from::plist::FromPlist;
|
|
use from::vcf::FromVcf;
|
|
use to::plist::IntoPlist;
|
|
|
|
pub struct FormatCmdsPlugin;
|
|
|
|
impl Plugin for FormatCmdsPlugin {
|
|
fn version(&self) -> String {
|
|
env!("CARGO_PKG_VERSION").into()
|
|
}
|
|
|
|
fn commands(&self) -> Vec<Box<dyn PluginCommand<Plugin = Self>>> {
|
|
vec![
|
|
Box::new(FromEml),
|
|
Box::new(FromIcs),
|
|
Box::new(FromIni),
|
|
Box::new(FromVcf),
|
|
Box::new(FromPlist),
|
|
Box::new(IntoPlist),
|
|
]
|
|
}
|
|
}
|