pub enum HDPCliCommands {
Start,
RunDatalake {
aggregate_fn_id: AggregationFunction,
aggregate_fn_ctx: Option<FunctionContext>,
datalake: DataLakeCommands,
rpc_url: Option<Url>,
chain_id: Option<ChainId>,
preprocessor_output_file: Option<PathBuf>,
sound_run_cairo_file: Option<PathBuf>,
output_file: Option<PathBuf>,
cairo_pie_file: Option<PathBuf>,
},
RunModule {
module_inputs: Vec<String>,
program_hash: Option<String>,
local_class_path: Option<PathBuf>,
save_fetch_keys_file: Option<PathBuf>,
rpc_url: Option<Url>,
chain_id: Option<ChainId>,
dry_run_cairo_file: Option<PathBuf>,
preprocessor_output_file: Option<PathBuf>,
sound_run_cairo_file: Option<PathBuf>,
output_file: Option<PathBuf>,
cairo_pie_file: Option<PathBuf>,
},
Run {
request_file: PathBuf,
rpc_url: Option<Url>,
dry_run_cairo_file: Option<PathBuf>,
preprocessor_output_file: PathBuf,
sound_run_cairo_file: Option<PathBuf>,
output_file: Option<PathBuf>,
cairo_pie_file: Option<PathBuf>,
},
}Variants§
Start
New to the HDP CLI? Start here!
RunDatalake
Run single datalake compute
Fields
aggregate_fn_id: AggregationFunctionThe aggregate function id e.g. “sum”, “min”, “avg”
aggregate_fn_ctx: Option<FunctionContext>Optional context for applying conditions on the aggregate function “count”.
Format: “{operator}.{value}” (e.g., “eq.100” for equality, “gt.100” for greater-than).
Supported operators are in the [Operator] enum.
datalake: DataLakeCommandspreprocessor_output_file: Option<PathBuf>Path to save output file after pre-processing.
This will trigger pre-processing step
RunModule
Run single module with either class hash deployed on starknet or local class path
Fields
module_inputs: Vec<String>Input field elements for the module contract. The input field elements should be separated by comma.
e.g. “0x1234,0xabcd”
local_class_path: Option<PathBuf>Local path of the contract class file. Make sure to have structure match with CasmContractClass
(Note: either class_hash or local_class_path should be provided)
rpc_url: Option<Url>The RPC URL to fetch the data.
Can be overwritten by RPC_URL environment variable.
chain_id: Option<ChainId>The chain id to fetch the data.
Can be overwritten by CHAIN_ID environment variable
preprocessor_output_file: Option<PathBuf>Path to save output file after pre-processing.
This will trigger pre-processing step
Run
Run batch of tasks base on request json file
Trait Implementations§
Source§impl Debug for HDPCliCommands
impl Debug for HDPCliCommands
Source§impl FromArgMatches for HDPCliCommands
impl FromArgMatches for HDPCliCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for HDPCliCommands
impl Subcommand for HDPCliCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for HDPCliCommands
impl RefUnwindSafe for HDPCliCommands
impl Send for HDPCliCommands
impl Sync for HDPCliCommands
impl Unpin for HDPCliCommands
impl UnwindSafe for HDPCliCommands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more