diff --git a/.drone/drone.jsonnet b/.drone/drone.jsonnet index 06e56b7..d7da58e 100644 --- a/.drone/drone.jsonnet +++ b/.drone/drone.jsonnet @@ -32,20 +32,6 @@ local deploy() = { ssh_key: {from_secret: "ssh_key"} }, commands: [".drone/scripts/publish-mpr.sh"] - }, - - { - name: "publish-crates-io", - image: "proget.makedeb.org/docker/makedeb/makedeb:ubuntu-jammy", - environment: { - CARGO_REGISTRY_TOKEN: {from_secret: "crates_api_key"} - }, - commands: [ - ".drone/scripts/setup-pbmpr.sh", - "sudo apt-get install cargo libssl-dev pkg-config libapt-pkg-dev -y", - "rm makedeb/mpr-cli -rf", - "cargo publish" - ] } ] }; diff --git a/CHANGELOG.md b/CHANGELOG.md index e6defff..85685ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.6.0] 2022-08-03 +### Changed +Renamed project to `Mist`. + ## [0.5.0] - 2022-07-23 ### Added - Added `update` command. diff --git a/Cargo.lock b/Cargo.lock index 9cb8d54..2a94120 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -139,15 +139,15 @@ checksum = "37ccbd214614c6783386c1af30caf03192f17891059cecc394b4fb119e363de3" [[package]] name = "bytemuck" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c53dfa917ec274df8ed3c572698f381a24eef2efba9492d797301b72b6db408a" +checksum = "a5377c8865e74a160d21f29c2d40669f53286db6eab59b88540cbb12ffc8b835" [[package]] name = "bytes" -version = "1.1.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" +checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db" [[package]] name = "bytesize" @@ -201,9 +201,9 @@ dependencies = [ [[package]] name = "clap" -version = "3.2.14" +version = "3.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54635806b078b7925d6e36810b1755f2a4b5b4d57560432c1ecf60bcbe10602b" +checksum = "a3dbbb6653e7c55cc8595ad3e1f7be8f32aba4eb7ff7f0fd1163d4f3d137c0a9" dependencies = [ "atty", "bitflags", @@ -258,14 +258,13 @@ dependencies = [ [[package]] name = "console" -version = "0.15.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a28b32d32ca44b70c3e4acd7db1babf555fa026e385fb95f18028f88848b3c31" +checksum = "89eab4d20ce20cea182308bca13088fecea9c05f6776cf287205d41a0ed3c847" dependencies = [ "encode_unicode", "libc", "once_cell", - "regex", "terminal_size", "unicode-width", "winapi 0.3.9", @@ -307,9 +306,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.71" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5469a6f42296f4fd40789b397383718f9a0bd75d2f9b7cedbb249996811fba27" +checksum = "873c2e83af70859af2aaecd1f5d862f3790b747b1f4f50fb45a931d000ac0422" dependencies = [ "cc", "cxxbridge-flags", @@ -319,9 +318,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.71" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "777e4db0e12e17ef7033768fb911ee89097a7e3f2247dc1729fa76fb8cfd7388" +checksum = "b49edea7163bbc7a39e3d829b4b0b66a9d30486973152842b7413f2c7b5632bf" dependencies = [ "cc", "codespan-reporting", @@ -334,15 +333,15 @@ dependencies = [ [[package]] name = "cxxbridge-flags" -version = "1.0.71" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fef2b4ffdc935c973bc7817d541fc936fdc8a85194cfdd9c761aca8387edd48" +checksum = "f46b787c15af80277db5c88c6ac6c502ae545e622f010e06f95e540d34931acf" [[package]] name = "cxxbridge-macro" -version = "1.0.71" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d3a240a54f5526967ffae81fdcda1fc80564964220d90816960b2eae2eab7f4" +checksum = "2ba3f3a7efa46626878fb5d324fabca4d19d2956b6ae97ce43044ef4515f5abc" dependencies = [ "proc-macro2", "quote", @@ -493,9 +492,9 @@ checksum = "de853764b47027c2e862a995c34978ffa63c1501f2e15f987ba11bd4f9bba193" [[package]] name = "fastrand" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf" +checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" dependencies = [ "instant", ] @@ -692,9 +691,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.12.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "607c8a29735385251a339424dd462993c0fed8fa09d378f259377df08c126022" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" [[package]] name = "hermit-abi" @@ -814,9 +813,9 @@ checksum = "879d54834c8c76457ef4293a689b2a8c59b076067ad77b15efafbb05f92a592b" [[package]] name = "itoa" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" +checksum = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754" [[package]] name = "jobserver" @@ -829,9 +828,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.58" +version = "0.3.59" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3fac17f7123a73ca62df411b1bf727ccc805daa070338fda671c86dac1bdc27" +checksum = "258451ab10b34f8af53416d1fdab72c22e805f0c92a1136d59470ec0b11138b2" dependencies = [ "wasm-bindgen", ] @@ -854,9 +853,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.126" +version = "0.2.127" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" +checksum = "505e71a4706fa491e9b1b55f51b95d4037d0821ee40131190475f692b35b009b" [[package]] name = "libgit2-sys" @@ -955,12 +954,12 @@ dependencies = [ ] [[package]] -name = "mpr" +name = "mist" version = "0.4.2" dependencies = [ "bat", "chrono", - "clap 3.2.14", + "clap 3.2.16", "colored", "dirs", "edit", @@ -1113,9 +1112,9 @@ dependencies = [ [[package]] name = "os_str_bytes" -version = "6.1.0" +version = "6.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21326818e99cfe6ce1e524c2a805c189a99b5ae555a35d19f9a284b427d86afa" +checksum = "648001efe5d5c0102d8cea768e348da85d90af8ba91f0bea908f157951493cd4" [[package]] name = "path_abs" @@ -1160,7 +1159,7 @@ dependencies = [ "indexmap", "line-wrap", "serde", - "time 0.3.11", + "time 0.3.12", "xml-rs", ] @@ -1172,9 +1171,9 @@ checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" [[package]] name = "proc-macro2" -version = "1.0.40" +version = "1.0.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7" +checksum = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab" dependencies = [ "unicode-ident", ] @@ -1196,18 +1195,18 @@ checksum = "a411616b47dce3139c0169c89899ba5ea3534e545ab4d0c1d3956460fe781bae" [[package]] name = "quote" -version = "1.0.20" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804" +checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" dependencies = [ "proc-macro2", ] [[package]] name = "redox_syscall" -version = "0.2.13" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ "bitflags", ] @@ -1324,9 +1323,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695" +checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" [[package]] name = "safemem" @@ -1355,9 +1354,9 @@ dependencies = [ [[package]] name = "scratch" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96311ef4a16462c757bb6a39152c40f58f31cd2602a40fceb937e2bc34e6cbab" +checksum = "9c8132065adcfd6e02db789d9285a0deb2f3fcb04002865ab67d5fb103533898" [[package]] name = "security-framework" @@ -1384,24 +1383,24 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2333e6df6d6598f2b1974829f853c2b4c5f4a6e503c10af918081aa6f8564e1" +checksum = "93f6841e709003d68bb2deee8c343572bf446003ec20a583e76f7b15cebf3711" [[package]] name = "serde" -version = "1.0.140" +version = "1.0.142" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc855a42c7967b7c369eb5860f7164ef1f6f81c20c7cc1141f2a604e18723b03" +checksum = "e590c437916fb6b221e1d00df6e3294f3fccd70ca7e92541c475d6ed6ef5fee2" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.140" +version = "1.0.142" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f2122636b9fe3b81f1cb25099fcf2d3f542cdb1d45940d56c713158884a05da" +checksum = "34b5b8d809babe02f538c2cfec6f2c1ed10804c0e5a6a041a049a4f5588ccc2e" dependencies = [ "proc-macro2", "quote", @@ -1410,9 +1409,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.82" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82c2c1fdcd807d1098552c5b9a36e425e42e9fbd7c6a37a8425f390f781f7fa7" +checksum = "38dd04e3c8279e75b31ef29dbdceebfe5ad89f4d0937213c53f7d49d01b3d5a7" dependencies = [ "itoa", "ryu", @@ -1433,9 +1432,9 @@ dependencies = [ [[package]] name = "serde_yaml" -version = "0.8.25" +version = "0.8.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ec0091e1f5aa338283ce049bd9dfefd55e1f168ac233e85c1ffe0038fb48cbe" +checksum = "578a7433b776b56a35785ed5ce9a7e777ac0598aac5a6dd1b4b18a307c7fc71b" dependencies = [ "indexmap", "ryu", @@ -1457,9 +1456,12 @@ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" [[package]] name = "slab" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb703cfe953bccee95685111adeedb76fabe4e97549a58d16f03ea7b9367bb32" +checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef" +dependencies = [ + "autocfg", +] [[package]] name = "socket2" @@ -1491,9 +1493,9 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "syn" -version = "1.0.98" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" +checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13" dependencies = [ "proc-macro2", "quote", @@ -1619,18 +1621,18 @@ checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb" [[package]] name = "thiserror" -version = "1.0.31" +version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a" +checksum = "f5f6586b7f764adc0231f4c79be7b920e766bb2f3e51b3661cdb263828f19994" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.31" +version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a" +checksum = "12bafc5b54507e0149cdf1b145a5d80ab80a90bcd9275df43d4fff68460f6c21" dependencies = [ "proc-macro2", "quote", @@ -1650,11 +1652,12 @@ dependencies = [ [[package]] name = "time" -version = "0.3.11" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72c91f41dcb2f096c05f0873d667dceec1087ce5bcf984ec8ffb19acddbb3217" +checksum = "74b7cc93fc23ba97fde84f7eea56c55d1ba183f495c6715defdfc7b9cb8c870f" dependencies = [ "itoa", + "js-sys", "libc", "num_threads", ] @@ -1676,10 +1679,11 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.19.2" +version = "1.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c51a52ed6686dd62c320f9b89299e9dfb46f730c7a48e635c19f21d116cb1439" +checksum = "7a8325f63a7d4774dd041e363b2409ed1c5cbbd0f867795e661df066b2b0a581" dependencies = [ + "autocfg", "bytes", "libc", "memchr", @@ -1723,9 +1727,9 @@ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] name = "tracing" -version = "0.1.35" +version = "0.1.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a400e31aa60b9d44a52a8ee0343b5b18566b03a8321e0d321f695cf56e940160" +checksum = "2fce9567bd60a67d08a16488756721ba392f24f29006402881e43b19aac64307" dependencies = [ "cfg-if", "pin-project-lite", @@ -1734,9 +1738,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.28" +version = "0.1.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b7358be39f2f274f322d2aaed611acc57f382e8eb1e5b48cb9ae30933495ce7" +checksum = "5aeea4303076558a00714b823f9ad67d58a3bbda1df83d8827d21193156e22f7" dependencies = [ "once_cell", ] @@ -1755,9 +1759,9 @@ checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" [[package]] name = "unicode-ident" -version = "1.0.1" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c" +checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf" [[package]] name = "unicode-normalization" @@ -1833,9 +1837,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c53b543413a17a202f4be280a7e5c62a1c69345f5de525ee64f8cfdbc954994" +checksum = "fc7652e3f6c4706c8d9cd54832c4a4ccb9b5336e2c3bd154d5cccfbf1c1f5f7d" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -1843,13 +1847,13 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5491a68ab4500fa6b4d726bd67408630c3dbe9c4fe7bda16d5c82a1fd8c7340a" +checksum = "662cd44805586bd52971b9586b1df85cdbbd9112e4ef4d8f41559c334dc6ac3f" dependencies = [ "bumpalo", - "lazy_static", "log", + "once_cell", "proc-macro2", "quote", "syn", @@ -1858,9 +1862,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.31" +version = "0.4.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de9a9cec1733468a8c657e57fa2413d2ae2c0129b95e87c5b72b8ace4d13f31f" +checksum = "fa76fb221a1f8acddf5b54ace85912606980ad661ac7a503b4570ffd3a624dad" dependencies = [ "cfg-if", "js-sys", @@ -1870,9 +1874,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c441e177922bc58f1e12c022624b6216378e5febc2f0533e41ba443d505b80aa" +checksum = "b260f13d3012071dfb1512849c033b1925038373aea48ced3012c09df952c602" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1880,9 +1884,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d94ac45fcf608c1f45ef53e748d35660f168490c10b23704c7779ab8f5c3048" +checksum = "5be8e654bdd9b79216c2929ab90721aa82faf65c48cdf08bdc4e7f51357b80da" dependencies = [ "proc-macro2", "quote", @@ -1893,15 +1897,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be" +checksum = "6598dd0bd3c7d51095ff6531a5b23e02acdc81804e30d8f07afb77b7215a140a" [[package]] name = "web-sys" -version = "0.3.58" +version = "0.3.59" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fed94beee57daf8dd7d51f2b15dc2bcde92d7a72304cdf662a4371008b71b90" +checksum = "ed055ab27f941423197eb86b2035720b1a3ce40504df082cac2ecc6ed73335a1" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/Cargo.toml b/Cargo.toml index 8ddf87b..11bd909 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "mpr" +name = "mist" version = "0.4.2" authors = ["Hunter Wittenborn The MPR CLI needs the latest version of the Rust compiler toolchain in order to build. It may work with older releases, but they're not tested against and aren't guaranteed to work. If you're system's repositories don't contain the latest release, the Rust toolchain can be installed from the [MPR](https://mpr.makedeb.org/packages/rustc) or the Prebuilt-MPR. +> Mist needs the latest version of the Rust compiler toolchain in order to build. It may work with older releases, but they're not tested against and aren't guaranteed to work. If you're system's repositories don't contain the latest release, the Rust toolchain can be installed from the [MPR](https://mpr.makedeb.org/packages/rustc) or the Prebuilt-MPR. ## Contributing -If there's something you want added/fixed in the MPR CLI, feel free to open a pull request. There aren't many guidelines on what you should do quite yet, so just submit your changes and we can figure out what to do from there! +If there's something you want added/fixed in Mist, feel free to open a pull request. There aren't many guidelines on what you should do quite yet, so just submit your changes and we can figure out what to do from there! diff --git a/completions/mpr.bash b/completions/mist.bash similarity index 77% rename from completions/mpr.bash rename to completions/mist.bash index b71d3bb..5ee6989 100644 --- a/completions/mpr.bash +++ b/completions/mist.bash @@ -1,21 +1,21 @@ -_mpr_get_pkglist() { +_mist_get_pkglist() { mapfile -t opts < <("${words[0]}" pkglist) } -_mpr_gen_compreply() { +_mist_gen_compreply() { mapfile -t COMPREPLY < <(compgen -W "${1}" -- "${2}") } -_mpr_pkg_specified_check() { +_mist_pkg_specified_check() { if [[ "${#nonopts[@]}" -gt 3 ]]; then - _mpr_gen_compreply '${opts[@]}' "${cur}" + _mist_gen_compreply '${opts[@]}' "${cur}" else - _mpr_get_pkglist - _mpr_gen_compreply '${opts[@]}' "${cur}" + _mist_get_pkglist + _mist_gen_compreply '${opts[@]}' "${cur}" fi } -_mpr() { +_mist() { local cur prev words cword _init_completion || return @@ -52,11 +52,11 @@ _mpr() { case "${cur}" in -*) - _mpr_gen_compreply '${opts[@]}' "${cur}" + _mist_gen_compreply '${opts[@]}' "${cur}" return ;; *) - _mpr_pkg_specified_check + _mist_pkg_specified_check return ;; esac @@ -71,11 +71,11 @@ _mpr() { opts+=('--msg') case "${cur}" in -*) - _mpr_gen_compreply '${opts[@]}' "${cur}" + _mist_gen_compreply '${opts[@]}' "${cur}" return ;; *) - _mpr_pkg_specified_check + _mist_pkg_specified_check return ;; esac @@ -90,7 +90,7 @@ _mpr() { ;; --paging) opts=('auto' 'never' 'always') - _mpr_gen_compreply '${opts[@]}' "${cur}" + _mist_gen_compreply '${opts[@]}' "${cur}" return ;; esac @@ -98,11 +98,11 @@ _mpr() { opts+=('--paging') case "${cur}" in -*) - _mpr_gen_compreply '${opts[@]}' "${cur}" + _mist_gen_compreply '${opts[@]}' "${cur}" return ;; *) - _mpr_pkg_specified_check + _mist_pkg_specified_check return ;; esac @@ -117,11 +117,11 @@ _mpr() { opts+=('--apt-only' '--mpr-only') case "${cur}" in -*) - _mpr_gen_compreply '${opts[@]}' "${cur}" + _mist_gen_compreply '${opts[@]}' "${cur}" return ;; *) - _mpr_pkg_specified_check + _mist_pkg_specified_check return ;; esac @@ -133,7 +133,7 @@ _mpr() { ;; esac - _mpr_gen_compreply '${opts[@]}' "${cur}" + _mist_gen_compreply '${opts[@]}' "${cur}" ;; whoami) case "${prev}" in @@ -142,11 +142,11 @@ _mpr() { ;; esac - _mpr_gen_compreply '${opts[@]}' "${cur}" + _mist_gen_compreply '${opts[@]}' "${cur}" return ;; esac } -complete -F _mpr mpr +complete -F _mist mist # vim: set sw=4 expandtab: diff --git a/makedeb/PKGBUILD b/makedeb/PKGBUILD index 4e620ab..ccabd57 100644 --- a/makedeb/PKGBUILD +++ b/makedeb/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Hunter Wittenborn -pkgname=mpr-cli -pkgver=0.5.0 +pkgname=mist +pkgver=0.6.0 pkgrel=1 -pkgdesc='The official command-line interface for the makedeb Package Repository' +pkgdesc='The official helper for the makedeb Package Repository' arch=('any') depends=( 'libapt-pkg-dev' @@ -17,7 +17,7 @@ makedepends=( 'pkg-config' ) license=('GPL3') -url='https://github.com/makedeb/mpr-cli' +url='https://github.com/makedeb/mist' source=("${url}/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('SKIP') @@ -26,14 +26,14 @@ build() { cd "${pkgname}-${pkgver}/" cargo build --release - sed -i "s|:mansource: Git|:mansource: ${pkgver}|" man/mpr.1.adoc + sed -i "s|:mansource: Git|:mansource: ${pkgver}|" man/mist.1.adoc } package() { cd "${pkgname}-${pkgver}/" - install -Dm 755 target/release/mpr "${pkgdir}/usr/bin/mpr" - asciidoctor -b manpage -o - man/mpr.1.adoc | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/man/man1/mpr.1" - install -Dm 644 completions/mpr.bash "${pkgdir}/usr/share/bash-completion/completions/mpr" + install -Dm 755 target/release/mist "${pkgdir}/usr/bin/mist" + asciidoctor -b manpage -o - man/mist.1.adoc | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/man/man1/mist.1" + install -Dm 644 completions/mist.bash "${pkgdir}/usr/share/bash-completion/completions/mist" } # vim: set sw=4 expandtab: diff --git a/man/mpr.1.adoc b/man/mist.1.adoc similarity index 74% rename from man/mpr.1.adoc rename to man/mist.1.adoc index 659dbbc..125bf75 100644 --- a/man/mpr.1.adoc +++ b/man/mist.1.adoc @@ -1,23 +1,23 @@ = MAKEDEB(1) :doctype: manpage :hardbreaks: -:manmanual: MPR CLI +:manmanual: Mist :mansource: Git == NAME -mpr - The official command-line interface for the makedeb Package Repository +mist - The official helper for the makedeb Package Repository == SYNOPSIS -*mpr* clone _pkgbase_ [_options_] ... -*mpr* comment _pkgbase_ [_options_] ... -*mpr* info _pkgname_ [_options_] ... -*mpr* list-comments _pkgbase_ [_options_] ... -*mpr* search _query_ ... [_options_] ... -*mpr* update -*mpr* whoami [_options_] ... +*mist* clone _pkgbase_ [_options_] ... +*mist* comment _pkgbase_ [_options_] ... +*mist* info _pkgname_ [_options_] ... +*mist* list-comments _pkgbase_ [_options_] ... +*mist* search _query_ ... [_options_] ... +*mist* update +*mist* whoami [_options_] ... == DESCRIPTION -*mpr* is a command-line interface for interacting with the makedeb Package Repository. +*mist* is a command-line interface for interacting with the makedeb Package Repository. The *comment* and *whoami* commands both require authentication via an API key in order to run. An API key can be obtained via the MPR web interface on the user's account page, and can be passed into this program via the *--token* argument or the *MPR_TOKEN* environment variable, the former being described in *OPTIONS*, and the latter in *ENVIRONMENT*. @@ -48,7 +48,7 @@ Run each command with *--help* to see available options. == BUGS Issues, as well as feature requests, should be reported on the project's GitHub page: -https://github.com/makedeb/mpr-cli/issues +https://github.com/makedeb/mist/issues Matrix is also used as our primary method of real-time communication, being where most discussions (outside of the issue tracker) take place. All rooms are joined via a Matrix space, which can be accessed via the following: @@ -57,7 +57,7 @@ Matrix is also used as our primary method of real-time communication, being wher == AUTHORS Hunter Wittenborn <\hunter@hunterwittenborn.com> -A full list of contributors can be found by running *git shortlog -esn* in the MPR CLI's Git repository (linked under *BUGS*). +A full list of contributors can be found by running *git shortlog -esn* in the Mist's Git repository (linked under *BUGS*). == SEE ALSO *makedeb*(8)