Skip to content

Commit

Permalink
feat: Search snippets and appmap events using sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilpin committed Nov 23, 2024
1 parent 03cdf79 commit 394ec08
Show file tree
Hide file tree
Showing 46 changed files with 1,599 additions and 1,311 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/cmds/search/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from '../../fulltext/FindEvents';
import { openInBrowser } from '../open/openers';
import { buildAppMapIndex, search } from '../../rpc/explain/index/appmap-index';
import buildIndexInTempDir from '../../rpc/explain/build-index-in-temp-dir';
import buildIndexInTempDir from '../../rpc/explain/index/build-index-in-temp-dir';

export const command = 'search <query>';
export const describe =
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/cmds/search/searchSingleAppMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default async function searchSingleAppMap(
query: string,
options: SearchOptions = {}
): Promise<SearchResponse> {
// eslint-disable-next-line no-param-reassign
if (appmap.endsWith('.appmap.json')) appmap = appmap.slice(0, -'.appmap.json'.length);

const findEvents = new FindEvents(appmap);
Expand Down
14 changes: 0 additions & 14 deletions packages/cli/src/fulltext/ref.ts

This file was deleted.

78 changes: 0 additions & 78 deletions packages/cli/src/rpc/explain/EventCollector.ts

This file was deleted.

93 changes: 0 additions & 93 deletions packages/cli/src/rpc/explain/LocationContextCollector.ts

This file was deleted.

165 changes: 0 additions & 165 deletions packages/cli/src/rpc/explain/SearchContextCollector.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/cli/src/rpc/explain/appmap-location.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SearchRpc } from '@appland/rpc';
import { SearchRpc } from "@appland/rpc";

export default function appmapLocation(appmap: string, event?: SearchRpc.EventMatch): string {
const appmapFile = [appmap, 'appmap.json'].join('.');
Expand Down
Loading

0 comments on commit 394ec08

Please sign in to comment.