fix: rename pkgr to extension
better name
This commit is contained in:
parent
595cc4b651
commit
f54c72c8ec
3 changed files with 9 additions and 9 deletions
|
@ -2,9 +2,9 @@ use serde::{Deserialize, Serialize};
|
||||||
use std::fmt::{Display, Formatter};
|
use std::fmt::{Display, Formatter};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct PKGR {}
|
pub struct Extension {}
|
||||||
|
|
||||||
impl Display for PKGR {
|
impl Display for Extension {
|
||||||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||||
write!(f, "")
|
write!(f, "")
|
||||||
}
|
}
|
|
@ -6,17 +6,17 @@ pub mod bin;
|
||||||
pub mod build;
|
pub mod build;
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
pub mod package;
|
pub mod package;
|
||||||
pub mod pkgr;
|
pub mod ext;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub struct Manifest<P: Clone = Option<pkgr::PKGR>> {
|
pub struct Manifest<E: Clone = Option<ext::Extension>> {
|
||||||
pub package: package::Package,
|
pub package: package::Package,
|
||||||
pub dependencies: HashMap<String, String>,
|
pub dependencies: HashMap<String, String>,
|
||||||
pub fs: fs::FS,
|
pub fs: fs::FS,
|
||||||
pub bin: Option<bin::Bin>,
|
pub bin: Option<bin::Bin>,
|
||||||
pub build: Option<build::Build>,
|
pub build: Option<build::Build>,
|
||||||
pub pkgr: P,
|
pub pkgr: E,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<P: Clone> Manifest<P> {
|
impl<P: Clone> Manifest<P> {
|
||||||
|
|
|
@ -84,16 +84,16 @@ install_script = "scripts/install" # relative to pkg
|
||||||
[build.dependencies]
|
[build.dependencies]
|
||||||
base = "latest,stable" # selected by default
|
base = "latest,stable" # selected by default
|
||||||
|
|
||||||
## pkgr.*
|
## ext.*
|
||||||
# packager is the official client but you may use other clients supporting the "pkgr v1 spec".
|
# packager is the official client but you may use other clients supporting the "pkgr v1 spec".
|
||||||
# other clients may offer extra functionality this must be put under "pkgr.*"
|
# other clients may offer extra functionality this must be put under "ext.*"
|
||||||
[pkgr]
|
[ext]
|
||||||
|
|
||||||
## pkgr.bootstrap
|
## pkgr.bootstrap
|
||||||
# This section is used for bootpkg. An edition of packager that bootstraps the full version.
|
# This section is used for bootpkg. An edition of packager that bootstraps the full version.
|
||||||
# This exists so that packager is easy to install on anything!
|
# This exists so that packager is easy to install on anything!
|
||||||
# and only 1 release channel for pkgr
|
# and only 1 release channel for pkgr
|
||||||
[pkgr.bootstrap]
|
[ext.bootstrap]
|
||||||
## any non-zero = installed
|
## any non-zero = installed
|
||||||
check_installed_commands = [
|
check_installed_commands = [
|
||||||
"sh scripts/check_installed"
|
"sh scripts/check_installed"
|
||||||
|
|
Loading…
Reference in a new issue