Add more options to `list_repos` command
Add filter for repos to list_repos command
Instead of only returning seeded repos, this repo adds 3 new filter
options to the list_repos command, under the show field
- all - All repos that a user has initialized or forked (own namespace)
- seeded - Repos that are beeing seeded by the user
- delegate - Repos that the current user is a delegate of.
4 files changed
+81
-50
c35ab783
→
06437656
modified crates/radicle-tauri/src/commands/repo.rs
@@ -3,13 +3,16 @@ use radicle::identity::RepoId;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/traits/repo.rs
@@ -1,45 +1,58 @@
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
|
| - | |
|
|
| - | |
| - | |
| + | |
|
|
| - | |
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -86,24 +99,27 @@ pub trait Repo: Profile {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -115,7 +131,11 @@ pub trait Repo: Profile {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/test-http-api/src/api.rs
@@ -20,7 +20,7 @@ use radicle_types::traits::auth::Auth;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -90,8 +90,16 @@ async fn auth_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/lib/router/definitions.ts
@@ -52,7 +52,7 @@ export async function loadRoute(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|