Tweak CLI
This commit is contained in:
parent
950c36d601
commit
26cb6b9f92
@ -1,4 +1,3 @@
|
|||||||
use std::fmt::Write;
|
|
||||||
use std::io::{self, stdout, Read};
|
use std::io::{self, stdout, Read};
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
use std::{fs::read_to_string, path::PathBuf};
|
use std::{fs::read_to_string, path::PathBuf};
|
||||||
@ -13,21 +12,19 @@ use clap::{Args, Error};
|
|||||||
use color_print::cstr;
|
use color_print::cstr;
|
||||||
use dust_lang::{CompileError, Compiler, DustError, DustString, Lexer, Span, Token, Vm};
|
use dust_lang::{CompileError, Compiler, DustError, DustString, Lexer, Span, Token, Vm};
|
||||||
use tracing::subscriber::set_global_default;
|
use tracing::subscriber::set_global_default;
|
||||||
use tracing::{span, warn, Level};
|
use tracing::Level;
|
||||||
use tracing_subscriber::fmt::format::Writer;
|
|
||||||
use tracing_subscriber::fmt::{FmtContext, MakeWriter};
|
|
||||||
use tracing_subscriber::FmtSubscriber;
|
use tracing_subscriber::FmtSubscriber;
|
||||||
|
|
||||||
const CLI_HELP_TEMPLATE: &str = cstr!(
|
const CLI_HELP_TEMPLATE: &str = cstr!(
|
||||||
r#"
|
r#"
|
||||||
<bright-magenta><bold>Dust CLI
|
<bright-magenta><bold>Dust CLI
|
||||||
────────</bold>
|
────────</bold></bright-magenta>
|
||||||
{about}</bright-magenta>
|
{about}
|
||||||
|
|
||||||
{tab}☑ Version: {version}
|
<bold>Version:</bold> {version}
|
||||||
{tab}✎ Author: {author}
|
<bold>Author:</bold> {author}
|
||||||
{tab}⚖️ License: GPL-3.0
|
<bold>License:</bold> GPL-3.0
|
||||||
{tab}🌐 Repository: git.jeffa.io/jeff/dust
|
<bold>Repository:</bold> git.jeffa.io/jeff/dust
|
||||||
|
|
||||||
<bright-magenta,bold>Usage
|
<bright-magenta,bold>Usage
|
||||||
─────</bright-magenta,bold>
|
─────</bright-magenta,bold>
|
||||||
@ -45,18 +42,18 @@ const CLI_HELP_TEMPLATE: &str = cstr!(
|
|||||||
|
|
||||||
const MODE_HELP_TEMPLATE: &str = cstr!(
|
const MODE_HELP_TEMPLATE: &str = cstr!(
|
||||||
r#"
|
r#"
|
||||||
<bright-magenta><bold>Dust CLI
|
<bright-magenta,bold>Dust CLI
|
||||||
────────</bold>
|
────────</bright-magenta,bold>
|
||||||
{about}</bright-magenta>
|
{about}
|
||||||
|
|
||||||
{tab}☑ Version: {version}
|
<bold>Version:</bold> {version}
|
||||||
{tab}✎ Author: {author}
|
<bold>Author:</bold> {author}
|
||||||
{tab}⚖️ License: GPL-3.0
|
<bold>License:</bold> GPL-3.0
|
||||||
{tab}🌐 Repository: git.jeffa.io/jeff/dust
|
<bold>Repository:</bold> git.jeffa.io/jeff/dust
|
||||||
|
|
||||||
<bright-magenta,bold>Usage
|
<bright-magenta,bold>Usage
|
||||||
─────</bright-magenta,bold>
|
─────</bright-magenta,bold>
|
||||||
{tab}{usage}
|
{usage}
|
||||||
|
|
||||||
<bright-magenta,bold>Options
|
<bright-magenta,bold>Options
|
||||||
───────</bright-magenta,bold>
|
───────</bright-magenta,bold>
|
||||||
|
Loading…
Reference in New Issue
Block a user