Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "githits",
"description": "CLI companion for GitHits - code examples from global open source for developers and AI assistants",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",
"files": [
"dist",
Expand Down
4 changes: 3 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ Getting started:
githits mcp Start MCP server for your AI assistant
githits search "query" --lang python Search for code examples

Learn more at https://githits.com`,
Learn more at https://githits.com
Docs: https://app.githits.com/docs/
Support: support@githits.com`,
);

// Auth commands
Expand Down
1 change: 1 addition & 0 deletions src/shared/require-auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe("requireAuth", () => {
const output = consoleSpy.mock.calls.map((c) => c[0]).join("\n");
expect(output).toContain("Authentication required");
expect(output).toContain("githits login");
expect(output).toContain("support@githits.com");
consoleSpy.mockRestore();
});

Expand Down
1 change: 1 addition & 0 deletions src/shared/require-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function requireAuth(
console.log("To authenticate:");
console.log(" githits login\n");
console.log("Or set GITHITS_API_TOKEN environment variable.");
console.log("\nNeed help? support@githits.com");

throw new AuthRequiredError(`Authentication required${suffix}`);
}