|
|
@ -27,6 +27,12 @@ impl TagApi {
|
|
|
|
Self { ctx }
|
|
|
|
Self { ctx }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Returns a list of all tags stored in the repo
|
|
|
|
|
|
|
|
#[tracing::instrument(level = "debug", skip(self))]
|
|
|
|
|
|
|
|
pub async fn get_all_tags(&self) -> ApiResult<Vec<String>> {
|
|
|
|
|
|
|
|
self.emit_and_get("all_tags", ()).await
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Returns a list of all tags for a file
|
|
|
|
/// Returns a list of all tags for a file
|
|
|
|
#[tracing::instrument(level = "debug", skip(self))]
|
|
|
|
#[tracing::instrument(level = "debug", skip(self))]
|
|
|
|
pub async fn get_tags_for_file(&self, hash: String) -> ApiResult<Vec<TagResponse>> {
|
|
|
|
pub async fn get_tags_for_file(&self, hash: String) -> ApiResult<Vec<TagResponse>> {
|
|
|
|