fix: rename pkgr to extension

better name
This commit is contained in:
Strix 2023-10-14 22:39:51 +02:00
parent 595cc4b651
commit f54c72c8ec
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
3 changed files with 9 additions and 9 deletions

View file

@ -2,9 +2,9 @@ use serde::{Deserialize, Serialize};
use std::fmt::{Display, Formatter};
#[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 {
write!(f, "")
}

View file

@ -6,17 +6,17 @@ pub mod bin;
pub mod build;
pub mod fs;
pub mod package;
pub mod pkgr;
pub mod ext;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(default)]
pub struct Manifest<P: Clone = Option<pkgr::PKGR>> {
pub struct Manifest<E: Clone = Option<ext::Extension>> {
pub package: package::Package,
pub dependencies: HashMap<String, String>,
pub fs: fs::FS,
pub bin: Option<bin::Bin>,
pub build: Option<build::Build>,
pub pkgr: P,
pub pkgr: E,
}
impl<P: Clone> Manifest<P> {

View file

@ -84,16 +84,16 @@ install_script = "scripts/install" # relative to pkg
[build.dependencies]
base = "latest,stable" # selected by default
## pkgr.*
## ext.*
# 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.*"
[pkgr]
# other clients may offer extra functionality this must be put under "ext.*"
[ext]
## pkgr.bootstrap
# 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!
# and only 1 release channel for pkgr
[pkgr.bootstrap]
[ext.bootstrap]
## any non-zero = installed
check_installed_commands = [
"sh scripts/check_installed"