cli: use a pager on list commands
49 files changed
+550
-112
ed8b0860
→
ee4f8a61
added AGENTS.md
@@ -0,0 +1,39 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
deleted crates/radicle-cli/build.rs
@@ -1 +0,0 @@
| - | |
|
added crates/radicle-cli/build.rs
@@ -0,0 +1,54 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-cli/examples/rad-patch-ahead-behind.md
@@ -14,7 +14,7 @@ Alice Jones
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -22,7 +22,7 @@ We go back to master, and add a different second entry, essentially forking
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -90,7 +90,7 @@ index 3f60d25..6829c43 100644
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/issue.rs
@@ -801,8 +801,7 @@ where
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/ls.rs
@@ -5,8 +5,6 @@ use radicle::storage::{ReadStorage, RepositoryInfo};
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -157,7 +155,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/node.rs
@@ -14,7 +14,6 @@ use radicle::prelude::RepoId;
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -323,7 +322,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/node/control.rs
@@ -302,7 +302,7 @@ pub fn status(node: &Node, profile: &Profile) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/patch/list.rs
@@ -9,7 +9,6 @@ use radicle::storage::git::Repository;
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -89,7 +88,7 @@ pub fn run(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/patch/review/builder.rs
@@ -452,7 +452,7 @@ impl FileReviewBuilder {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/remote.rs
@@ -207,20 +207,20 @@ pub fn run(options: Options, ctx: impl Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/remote/list.rs
@@ -5,7 +5,7 @@ use radicle::identity::{Did, RepoId};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -80,8 +80,8 @@ pub fn untracked<'a>(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -99,12 +99,13 @@ pub fn print_tracked<'a>(tracked: impl Iterator<Item = &'a Tracked>) {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -112,6 +113,7 @@ pub fn print_untracked<'a>(untracked: impl Iterator<Item = &'a Untracked>) {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
modified crates/radicle-cli/src/commands/self.rs
@@ -2,11 +2,11 @@ use std::ffi::OsString;
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -208,7 +208,7 @@ fn all(profile: &Profile) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/sync.rs
@@ -18,7 +18,6 @@ use radicle::prelude::{NodeId, Profile, RepoId};
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -406,7 +405,7 @@ fn sync_status(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/git.rs
@@ -250,7 +250,7 @@ pub fn is_signing_configured(repo: &Path) -> Result<bool, anyhow::Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -272,7 +272,7 @@ pub fn is_remote(repo: &git2::Repository, alias: &str) -> anyhow::Result<bool> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/project.rs
@@ -22,7 +22,7 @@ impl SetupRemote<'_> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/terminal.rs
@@ -161,3 +161,11 @@ pub fn fail(_name: &str, error: &anyhow::Error) {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-cli/src/terminal/patch.rs
@@ -307,21 +307,19 @@ pub fn get_update_message(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/terminal/patch/common.rs
@@ -97,7 +97,7 @@ pub fn branches(target: &Oid, repo: &git::raw::Repository) -> anyhow::Result<Vec
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/tests/commands.rs
@@ -1790,6 +1790,12 @@ fn rad_sync() {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/tests/util/formula.rs
@@ -24,6 +24,8 @@ pub(crate) fn formula(
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-crypto/src/lib.rs
@@ -357,7 +357,7 @@ impl PublicKey {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-fetch/src/git/repository/error.rs
@@ -40,6 +40,7 @@ pub struct Resolve {
|
|
|
|
|
|
| + | |
|
|
|
|
|
deleted crates/radicle-node/build.rs
@@ -1 +0,0 @@
| - | |
|
added crates/radicle-node/build.rs
@@ -0,0 +1,54 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-node/src/test/environment.rs
@@ -206,13 +206,23 @@ impl<G: crypto::signature::Signer<crypto::Signature> + cyphernet::Ecdh + 'static
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-node/src/test/node.rs
@@ -85,13 +85,23 @@ impl<G: 'static> Drop for NodeHandle<G> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-node/src/wire.rs
@@ -258,7 +258,7 @@ impl Peers {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/bounded.rs
@@ -160,7 +160,7 @@ impl<T, const N: usize> BoundedVec<T, N> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/service.rs
@@ -1089,7 +1089,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
deleted crates/radicle-remote-helper/build.rs
@@ -1 +0,0 @@
| - | |
|
added crates/radicle-remote-helper/build.rs
@@ -0,0 +1,54 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-ssh/src/encoding.rs
@@ -167,11 +167,11 @@ impl Encoding for Buffer {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -180,7 +180,7 @@ impl Reader for Buffer {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-term/src/element.rs
@@ -56,7 +56,13 @@ impl Constraint {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -89,6 +95,32 @@ pub trait Element: fmt::Debug + Send + Sync {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -121,6 +153,10 @@ impl Element for Box<dyn Element + '_> {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -135,11 +171,15 @@ impl<T: Element> Element for &T {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -369,6 +409,45 @@ impl Size {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-term/src/lib.rs
@@ -7,6 +7,7 @@ pub mod format;
|
|
|
|
|
|
| + | |
|
|
|
|
|
added crates/radicle-term/src/pager.rs
@@ -0,0 +1,115 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-term/src/table.rs
@@ -233,6 +233,20 @@ impl<const W: usize, T: Cell> Table<W, T> {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/cob/identity.rs
@@ -273,7 +273,7 @@ impl Identity {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/cob/issue.rs
@@ -1390,7 +1390,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/cob/patch.rs
@@ -2419,7 +2419,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/git.rs
@@ -298,7 +298,7 @@ pub mod refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -306,7 +306,7 @@ pub mod refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -315,7 +315,7 @@ pub mod refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -497,7 +497,7 @@ pub fn remote_refs(url: &Url) -> Result<RandomMap<RemoteId, Refs>, ListRefsError
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -526,7 +526,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -599,7 +599,7 @@ pub fn empty_commit<'a>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/git/canonical/rules.rs
@@ -511,7 +511,7 @@ pub struct MatchedRule<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/identity/doc.rs
@@ -830,7 +830,7 @@ impl Doc {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage.rs
@@ -509,10 +509,10 @@ pub trait ReadRepository: Sized + ValidateRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -520,14 +520,14 @@ pub trait ReadRepository: Sized + ValidateRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -572,15 +572,15 @@ pub trait ReadRepository: Sized + ValidateRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -606,7 +606,7 @@ pub trait ReadRepository: Sized + ValidateRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/git.rs
@@ -657,7 +657,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -671,7 +671,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -679,7 +679,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -695,13 +695,13 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -749,7 +749,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -774,7 +774,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -784,7 +784,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/git/cob.rs
@@ -278,11 +278,11 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -290,11 +290,11 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -310,11 +310,11 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -322,7 +322,7 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -341,7 +341,7 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/refs.rs
@@ -400,7 +400,7 @@ impl RefsAt {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/test/fixtures.rs
@@ -178,7 +178,7 @@ pub fn tag(name: &str, message: &str, commit: git2::Oid, repo: &git2::Repository
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/test/storage.rs
@@ -203,11 +203,11 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -215,13 +215,13 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -236,7 +236,7 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -244,7 +244,7 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -252,7 +252,7 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -284,7 +284,7 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|