Skip to content

Commit 7ef1714

Browse files
committed
Add import type extension
1 parent 0112a57 commit 7ef1714

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

dsc_lib/src/extensions/dscextension.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ pub enum Capability {
4141
Discover,
4242
/// The extension aids in retrieving secrets.
4343
Secret,
44+
/// The extension imports configuration from a different format.
45+
Import,
4446
}
4547

4648
impl Display for Capability {
4749
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4850
match self {
4951
Capability::Discover => write!(f, "Discover"),
5052
Capability::Secret => write!(f, "Secret"),
53+
Capability::Import => write!(f, "Import"),
5154
}
5255
}
5356
}

dsc_lib/src/extensions/import.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+

dsc_lib/src/extensions/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pub mod discover;
55
pub mod dscextension;
66
pub mod extension_manifest;
77
pub mod secret;
8+
pub mod import;

0 commit comments

Comments
 (0)