Add hidden attribute
This commit is contained in:
@@ -63,6 +63,12 @@ pub enum Source {
|
|||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
pub struct FieldSpec {
|
pub struct FieldSpec {
|
||||||
|
/// If true, do not display this field.
|
||||||
|
/// This attribute has no effect on pile, it
|
||||||
|
/// is intended for consumers of data.
|
||||||
|
#[serde(default)]
|
||||||
|
pub hidden: bool,
|
||||||
|
|
||||||
/// How to find this field in a data entry
|
/// How to find this field in a data entry
|
||||||
pub path: Vec<ObjectPath>,
|
pub path: Vec<ObjectPath>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ fn main_inner() -> Result<i32> {
|
|||||||
|
|
||||||
let ctx = GlobalContext { mp, config };
|
let ctx = GlobalContext { mp, config };
|
||||||
|
|
||||||
let res = rt.block_on(async {
|
rt.block_on(async {
|
||||||
let task = cli.cmd.start(ctx).context("while starting task")?;
|
let task = cli.cmd.start(ctx).context("while starting task")?;
|
||||||
let signal_task = start_signal_task(task.flag().clone());
|
let signal_task = start_signal_task(task.flag().clone());
|
||||||
|
|
||||||
@@ -99,7 +99,5 @@ fn main_inner() -> Result<i32> {
|
|||||||
Err(err).context("while running task")
|
Err(err).context("while running task")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
|
||||||
res
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user