diff options
Diffstat (limited to 'crates/vcs/src/data/sheet.rs')
| -rw-r--r-- | crates/vcs/src/data/sheet.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/vcs/src/data/sheet.rs b/crates/vcs/src/data/sheet.rs index a6765c0..95599ff 100644 --- a/crates/vcs/src/data/sheet.rs +++ b/crates/vcs/src/data/sheet.rs @@ -71,6 +71,15 @@ impl<'a> Sheet<'a> { &self.data.inputs } + /// Get the names of the inputs of this sheet + pub fn input_names(&self) -> Vec<String> { + self.data + .inputs + .iter() + .map(|input| input.name.clone()) + .collect() + } + /// Get the mapping of this sheet pub fn mapping(&self) -> &HashMap<SheetPathBuf, VirtualFileId> { &self.data.mapping |
