This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавлено скачивание всех плагинов в Config
Учитывается предварительная проверка на наличие в Lock
- Loading branch information
Showing
14 changed files
with
220 additions
and
50 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::settings::extensions::plugin::Plugin; | ||
|
||
#[derive(Debug, PartialEq, Serialize, Deserialize, Default)] | ||
pub struct ExtensionMeta { | ||
version: Option<String>, | ||
path: String, | ||
} | ||
impl ExtensionMeta { | ||
fn from_plugin(value: Plugin, path: &str) -> Self { | ||
Self { | ||
version: value.version().cloned(), | ||
path: path.to_owned(), | ||
} | ||
pub fn new(version: Option<String>, path: String) -> Self { | ||
Self { version, path } | ||
} | ||
|
||
pub fn version(&self) -> Option<&String> { | ||
self.version.as_ref() | ||
} | ||
|
||
pub fn path(&self) -> &str { | ||
&self.path | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.