Function brane_tsk::input::prompt_for_input

source ·
pub fn prompt_for_input(
    data_index: &DataIndex,
    package: &PackageInfo,
) -> Result<(String, HashMap<String, FullValue>), Error>
Expand description

Prompts the user for input before testing the package.

Basically asks their shirt off their body in what function they want to execute and which values to execute it with.

§Arguments

  • dindex: The DataIndex that represents possible datasets to choose from if the given function requires any.
  • package: The PackageInfo file that contains the package information of the package we are querying for.

§Returns

The name of the chosen function and a map of values for the function to run with.

§Errors

This function errors if querying the user failed. Additionally, if their package re-exports builtins, that’s considered a grave grime and they will be shot too.