fix: some breaking changes from clap v4
This commit is contained in:
parent
79c2cb3062
commit
c3175e2fc9
|
@ -2,9 +2,8 @@ use crate::with_project;
|
|||
use aiken_lang::ast::Tracing;
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[derive(clap::Args)]
|
||||
#[clap(setting(clap::AppSettings::DeriveDisplayOrder))]
|
||||
/// Compute a validator's address.
|
||||
#[derive(clap::Args)]
|
||||
pub struct Args {
|
||||
/// Path to project
|
||||
directory: Option<PathBuf>,
|
||||
|
|
|
@ -7,9 +7,8 @@ use uplc::{
|
|||
parser,
|
||||
};
|
||||
|
||||
#[derive(clap::Args)]
|
||||
#[clap(setting(clap::AppSettings::DeriveDisplayOrder))]
|
||||
/// Apply a parameter to a parameterized validator.
|
||||
#[derive(clap::Args)]
|
||||
pub struct Args {
|
||||
/// Path to project
|
||||
directory: Option<PathBuf>,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use clap::clap_derive::ArgEnum;
|
||||
use clap::ValueEnum;
|
||||
use miette::IntoDiagnostic;
|
||||
use serde_json::json;
|
||||
use std::{env, fs::File, io::BufReader, path::PathBuf, process};
|
||||
|
@ -10,7 +10,6 @@ use aiken_project::{
|
|||
|
||||
/// Convert a blueprint into other formats.
|
||||
#[derive(clap::Args)]
|
||||
#[clap(setting(clap::AppSettings::DeriveDisplayOrder))]
|
||||
pub struct Args {
|
||||
/// Path to project
|
||||
directory: Option<PathBuf>,
|
||||
|
@ -24,11 +23,11 @@ pub struct Args {
|
|||
validator: Option<String>,
|
||||
|
||||
// Format to convert to
|
||||
#[clap(long, arg_enum, default_value = "cardano-cli")]
|
||||
#[clap(long, default_value = "cardano-cli")]
|
||||
to: Format,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, ArgEnum)]
|
||||
#[derive(Copy, Clone, ValueEnum)]
|
||||
pub enum Format {
|
||||
CardanoCli,
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ use clap::Subcommand;
|
|||
|
||||
/// Commands for working with Plutus blueprints
|
||||
#[derive(Subcommand)]
|
||||
#[clap(setting(clap::AppSettings::DeriveDisplayOrder))]
|
||||
pub enum Cmd {
|
||||
Address(address::Args),
|
||||
Apply(apply::Args),
|
||||
|
|
|
@ -6,7 +6,6 @@ use clap::Subcommand;
|
|||
|
||||
/// Managing project dependencies
|
||||
#[derive(Subcommand)]
|
||||
#[clap(setting(clap::AppSettings::DeriveDisplayOrder))]
|
||||
pub enum Cmd {
|
||||
/// Add a new package dependency
|
||||
Add(add::Args),
|
||||
|
|
|
@ -4,7 +4,6 @@ use clap::Subcommand;
|
|||
|
||||
/// Commands for working with transactions
|
||||
#[derive(Subcommand)]
|
||||
#[clap(setting(clap::AppSettings::DeriveDisplayOrder))]
|
||||
pub enum Cmd {
|
||||
Simulate(simulate::Args),
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ use clap::Subcommand;
|
|||
|
||||
/// Commands for working with untyped Plutus-core
|
||||
#[derive(Subcommand)]
|
||||
#[clap(setting(clap::AppSettings::DeriveDisplayOrder))]
|
||||
pub enum Cmd {
|
||||
Fmt(fmt::Args),
|
||||
Eval(eval::Args),
|
||||
|
|
|
@ -10,7 +10,6 @@ use clap::Parser;
|
|||
#[derive(Parser)]
|
||||
#[clap(version, about, long_about = None)]
|
||||
#[clap(propagate_version = true)]
|
||||
#[clap(setting(clap::AppSettings::DeriveDisplayOrder))]
|
||||
pub enum Cmd {
|
||||
New(new::Args),
|
||||
Fmt(fmt::Args),
|
||||
|
|
Loading…
Reference in New Issue