Format and lint

This commit is contained in:
Andrej Kolchin 2024-07-24 12:56:16 +03:00
parent 2f0b961ab3
commit fa9d61c280
6 changed files with 14 additions and 11 deletions

View File

@ -176,18 +176,19 @@ pub fn add_shell_command_context(mut engine_state: EngineState) -> EngineState {
// Strings // Strings
bind_command! { bind_command! {
DecodeBase32,
EncodeBase32,
DecodeBase32Hex,
EncodeBase32Hex,
DecodeHex,
EncodeHex,
Char, Char,
Decode, Decode,
Encode, Encode,
DecodeBase64Old, DecodeBase64Old,
EncodeBase64Old, EncodeBase64Old,
DecodeBase32,
EncodeBase32,
DecodeBase32Hex,
EncodeBase32Hex,
DecodeBase64,
EncodeBase64,
DecodeHex,
EncodeHex,
DetectColumns, DetectColumns,
Parse, Parse,
Split, Split,

View File

@ -2,7 +2,7 @@ use data_encoding::Encoding;
use nu_engine::command_prelude::*; use nu_engine::command_prelude::*;
const EXTRA_USAGE: &'static str = r"The default alphabet is taken from RFC 4648, section 6. const EXTRA_USAGE: &str = r"The default alphabet is taken from RFC 4648, section 6.
Note this command will collect stream input."; Note this command will collect stream input.";

View File

@ -1,6 +1,6 @@
use nu_engine::command_prelude::*; use nu_engine::command_prelude::*;
const EXTRA_USAGE: &'static str = r"This command uses an alternative Base32 alphabet, defined in RFC 4648, section 7. const EXTRA_USAGE: &str = r"This command uses an alternative Base32 alphabet, defined in RFC 4648, section 7.
Note this command will collect stream input."; Note this command will collect stream input.";

View File

@ -2,7 +2,7 @@ use data_encoding::Encoding;
use nu_engine::command_prelude::*; use nu_engine::command_prelude::*;
const EXTRA_USAGE: &'static str = r"The default alphabet is taken from RFC 4648, section 4. A URL-safe version is available. const EXTRA_USAGE: &str = r"The default alphabet is taken from RFC 4648, section 4. A URL-safe version is available.
Note this command will collect stream input."; Note this command will collect stream input.";

View File

@ -11,6 +11,7 @@ mod hex;
pub use base32::{DecodeBase32, EncodeBase32}; pub use base32::{DecodeBase32, EncodeBase32};
pub use base32hex::{DecodeBase32Hex, EncodeBase32Hex}; pub use base32hex::{DecodeBase32Hex, EncodeBase32Hex};
pub use base64::{DecodeBase64, EncodeBase64};
pub use hex::{DecodeHex, EncodeHex}; pub use hex::{DecodeHex, EncodeHex};
pub fn decode( pub fn decode(

View File

@ -9,7 +9,8 @@ mod split;
mod str_; mod str_;
pub use base::{ pub use base::{
DecodeBase32, DecodeBase32Hex, DecodeHex, EncodeBase32, EncodeBase32Hex, EncodeHex, DecodeBase32, DecodeBase32Hex, DecodeBase64, DecodeHex, EncodeBase32, EncodeBase32Hex,
EncodeBase64, EncodeHex,
}; };
pub use char_::Char; pub use char_::Char;
pub use detect_columns::*; pub use detect_columns::*;