fix: completions should not work on windows
This commit is contained in:
parent
ff50d4d2cf
commit
ed73df302a
|
@ -45,4 +45,6 @@ inquire = "0.6.2"
|
||||||
num-bigint = "0.4.3"
|
num-bigint = "0.4.3"
|
||||||
ordinal = "0.3.2"
|
ordinal = "0.3.2"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
|
|
||||||
|
[target.'cfg(not(windows))'.dependencies]
|
||||||
xdg = "2.5.2"
|
xdg = "2.5.2"
|
||||||
|
|
|
@ -4,6 +4,8 @@ use clap::Parser;
|
||||||
pub mod blueprint;
|
pub mod blueprint;
|
||||||
pub mod build;
|
pub mod build;
|
||||||
pub mod check;
|
pub mod check;
|
||||||
|
// only windows
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
pub mod completion;
|
pub mod completion;
|
||||||
pub mod docs;
|
pub mod docs;
|
||||||
pub mod export;
|
pub mod export;
|
||||||
|
@ -45,6 +47,7 @@ pub enum Cmd {
|
||||||
#[clap(subcommand)]
|
#[clap(subcommand)]
|
||||||
Uplc(uplc::Cmd),
|
Uplc(uplc::Cmd),
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
#[clap(subcommand)]
|
#[clap(subcommand)]
|
||||||
Completion(completion::Cmd),
|
Completion(completion::Cmd),
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
use aiken_project::{config, pretty};
|
use aiken_project::{config, pretty};
|
||||||
use cmd::{
|
use cmd::{
|
||||||
blueprint::{self, address},
|
blueprint::{self, address},
|
||||||
build, check, completion, docs, export, fmt, lsp, new,
|
build, check, docs, export, fmt, lsp, new,
|
||||||
packages::{self, add},
|
packages::{self, add},
|
||||||
tx, uplc, Cmd,
|
tx, uplc, Cmd,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
|
use cmd::completion;
|
||||||
|
|
||||||
use owo_colors::OwoColorize;
|
use owo_colors::OwoColorize;
|
||||||
|
|
||||||
mod cmd;
|
mod cmd;
|
||||||
|
@ -25,6 +29,7 @@ fn main() -> miette::Result<()> {
|
||||||
Cmd::Lsp(args) => lsp::exec(args),
|
Cmd::Lsp(args) => lsp::exec(args),
|
||||||
Cmd::Tx(sub_cmd) => tx::exec(sub_cmd),
|
Cmd::Tx(sub_cmd) => tx::exec(sub_cmd),
|
||||||
Cmd::Uplc(sub_cmd) => uplc::exec(sub_cmd),
|
Cmd::Uplc(sub_cmd) => uplc::exec(sub_cmd),
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
Cmd::Completion(sub_cmd) => completion::exec(sub_cmd),
|
Cmd::Completion(sub_cmd) => completion::exec(sub_cmd),
|
||||||
Cmd::Export(args) => export::exec(args),
|
Cmd::Export(args) => export::exec(args),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue