Compare commits
1 Commits
chore/upda
...
f095312437
Author | SHA1 | Date | |
---|---|---|---|
|
f095312437 |
@@ -13,10 +13,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- add ability to specify custom command
|
- add ability to specify custom command
|
||||||
|
|
||||||
### Fixed
|
|
||||||
- use correct post clone command
|
|
||||||
- tests for config
|
|
||||||
|
|
||||||
### Other
|
### Other
|
||||||
- add ability to specify multiple commands
|
- add ability to specify multiple commands
|
||||||
|
|
||||||
|
@@ -114,7 +114,7 @@ impl RootCommand {
|
|||||||
|
|
||||||
self.app
|
self.app
|
||||||
.custom_command()
|
.custom_command()
|
||||||
.execute_post_clone_command(&project_path)
|
.execute_post_update_command(&project_path)
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@@ -398,7 +398,6 @@ mod test {
|
|||||||
directory: PathBuf::from("git").into()
|
directory: PathBuf::from("git").into()
|
||||||
},
|
},
|
||||||
post_update_command: None,
|
post_update_command: None,
|
||||||
post_clone_command: None
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
config
|
config
|
||||||
@@ -425,7 +424,6 @@ mod test {
|
|||||||
cache: Cache::default(),
|
cache: Cache::default(),
|
||||||
projects: Projects::default(),
|
projects: Projects::default(),
|
||||||
post_update_command: None,
|
post_update_command: None,
|
||||||
post_clone_command: None
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
config
|
config
|
||||||
|
@@ -1,31 +1,7 @@
|
|||||||
[settings]
|
|
||||||
# Runs after a project is fetched for the first time, either a single string, or multiple in an array
|
|
||||||
post_clone_command = "jj git init --colocate"
|
|
||||||
# Runs after a project is jumped to if it already exists.
|
|
||||||
post_update_command = ["git pull", "jj git fetch"]
|
|
||||||
|
|
||||||
[[providers.github]]
|
[[providers.github]]
|
||||||
# Who is the user running the clone command
|
|
||||||
current_user = "kjuulh"
|
|
||||||
# How to authenticate to github
|
|
||||||
access_token = { env = "GITHUB_ACCESS_TOKEN" }
|
|
||||||
|
|
||||||
# Which users to index
|
|
||||||
users = ["kjuulh"]
|
users = ["kjuulh"]
|
||||||
# Which organisations to index
|
|
||||||
organisations = ["lunarway"]
|
organisations = ["lunarway"]
|
||||||
|
|
||||||
[[providers.gitea]]
|
[[providers.gitea]]
|
||||||
# WHich gitea instance to authenticate against
|
|
||||||
url = "https://git.front.kjuulh.io/api/v1"
|
|
||||||
|
|
||||||
# How to authenticate to gitea
|
|
||||||
current_user = "kjuulh"
|
|
||||||
|
|
||||||
# WHich token to use to authenticate
|
|
||||||
access_token = { env = "GITEA_ACCESS_TOKEN" }
|
|
||||||
|
|
||||||
# Which users to index
|
|
||||||
users = ["kjuulh"]
|
users = ["kjuulh"]
|
||||||
# Which organisations to index
|
|
||||||
organisation = ["noorgplease"]
|
organisation = ["noorgplease"]
|
||||||
|
Reference in New Issue
Block a user