Skip to main content

libgrite_cli/
context_cmd.rs

1use crate::context::GriteContext;
2use crate::types::*;
3use libgrite_core::GriteError;
4
5/// Index files in the repository.
6pub fn context_index(
7    ctx: &GriteContext,
8    opts: &ContextIndexOptions,
9) -> Result<ContextIndexResult, GriteError> {
10    let _ = ctx;
11    let _ = opts;
12    todo!("context_index not yet implemented in library")
13}
14
15/// Query symbols.
16pub fn context_query(
17    ctx: &GriteContext,
18    opts: &ContextQueryOptions,
19) -> Result<ContextQueryResult, GriteError> {
20    let _ = ctx;
21    let _ = opts;
22    todo!("context_query not yet implemented in library")
23}
24
25/// Show context for a file.
26pub fn context_show(
27    ctx: &GriteContext,
28    opts: &ContextShowOptions,
29) -> Result<ContextShowResult, GriteError> {
30    let _ = ctx;
31    let _ = opts;
32    todo!("context_show not yet implemented in library")
33}
34
35/// Show project context.
36pub fn context_project(
37    ctx: &GriteContext,
38    opts: &ContextProjectOptions,
39) -> Result<ContextProjectResult, GriteError> {
40    let _ = ctx;
41    let _ = opts;
42    todo!("context_project not yet implemented in library")
43}
44
45/// Set project context.
46pub fn context_set(
47    ctx: &GriteContext,
48    opts: &ContextSetOptions,
49) -> Result<ContextSetResult, GriteError> {
50    let _ = ctx;
51    let _ = opts;
52    todo!("context_set not yet implemented in library")
53}