Fix compiler errors

This commit is contained in:
Aster committed 2022-02-09 16:11:02 +08:00
1 parent b6c6dd6532
commit ce628e1197
13 files changed
+101 -64

No files matched your search

+17 -16
View File
@@ -6,31 +6,31 @@ pub mod create;
pub mod serve;
pub mod translate;
use std::{io::Write, path::PathBuf};
use crate::custom_error;
use crate::{cfg::ConfigOptsBuild, gen_page};
use clap::{Parser};
use crate::{cfg::ConfigOptsServe, server, CrateConfig};
use crate::{error::Result, Error};
use clap::Parser;
use html_parser::Dom;
use html_parser::Element;
use html_parser::Node;
use regex::Regex;
use serde::Deserialize;
use std::fmt::{Display, Formatter};
use std::fs::File;
use std::io::Read;
use std::process::exit;
use std::{
fs::remove_dir_all,
process::{Command, Stdio},
};
use std::{fs::File};
use std::{
io::{Read},
};
use regex::Regex;
use crate::{error::Result, Error};
use crate::{cfg::ConfigOptsServe, server, CrateConfig};
use html_parser::Dom;
use html_parser::Element;
use html_parser::Node;
use std::fmt::{Display, Formatter};
use std::process::exit;
use std::{io::Write, path::PathBuf};
use clap::{Subcommand};
/// Build, bundle, & ship your Dioxus app.
///
///
#[derive(Parser, Debug)]
#[derive(Parser)]
#[clap(name = "dioxus")]
pub struct Cli {
#[clap(subcommand)]
@@ -42,7 +42,7 @@ pub struct Cli {
//
// // note: dioxus is still roughly compatible with trunk
// /// Path to the Trunk config file [default: Trunk.toml]
// #[structopt(long, parse(from_os_str), env = "TRUNK_CONFIG")]
// #[clap(long, parse(from_os_str), env = "TRUNK_CONFIG")]
// pub config: Option<PathBuf>,
}
@@ -59,5 +59,6 @@ pub enum Commands {
/// Clean output artifacts.
Clean(clean::Clean),
/// Dioxus config file controls.
#[clap(subcommand)]
Config(config::Config),
}