mcp-ticketer 0.3.6__py3-none-any.whl → 0.4.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mcp-ticketer might be problematic. Click here for more details.

@@ -0,0 +1,133 @@
1
+ """Platform-specific command groups."""
2
+
3
+ import typer
4
+
5
+ # Import platform-specific command modules
6
+ from .linear_commands import app as linear_app
7
+
8
+ # Create main platform command group
9
+ app = typer.Typer(
10
+ name="platform",
11
+ help="Platform-specific commands (Linear, JIRA, GitHub, AITrackdown)",
12
+ )
13
+
14
+ # Register Linear commands
15
+ app.add_typer(linear_app, name="linear")
16
+
17
+ # Create placeholder apps for other platforms
18
+
19
+ # JIRA platform commands (placeholder)
20
+ jira_app = typer.Typer(
21
+ name="jira",
22
+ help="JIRA-specific workspace and project management",
23
+ )
24
+
25
+
26
+ @jira_app.command("projects")
27
+ def jira_list_projects():
28
+ """List JIRA projects (placeholder - not yet implemented)."""
29
+ from rich.console import Console
30
+
31
+ console = Console()
32
+ console.print(
33
+ "[yellow]JIRA platform commands are not yet implemented.[/yellow]"
34
+ )
35
+ console.print(
36
+ "Use the generic ticket commands for JIRA operations:\n"
37
+ " mcp-ticketer ticket create 'My ticket'\n"
38
+ " mcp-ticketer ticket list"
39
+ )
40
+
41
+
42
+ @jira_app.command("configure")
43
+ def jira_configure():
44
+ """Configure JIRA adapter (placeholder - not yet implemented)."""
45
+ from rich.console import Console
46
+
47
+ console = Console()
48
+ console.print(
49
+ "[yellow]JIRA platform commands are not yet implemented.[/yellow]"
50
+ )
51
+ console.print(
52
+ "Use 'mcp-ticketer init --adapter jira' to configure JIRA adapter."
53
+ )
54
+
55
+
56
+ # GitHub platform commands (placeholder)
57
+ github_app = typer.Typer(
58
+ name="github",
59
+ help="GitHub-specific repository and issue management",
60
+ )
61
+
62
+
63
+ @github_app.command("repos")
64
+ def github_list_repos():
65
+ """List GitHub repositories (placeholder - not yet implemented)."""
66
+ from rich.console import Console
67
+
68
+ console = Console()
69
+ console.print(
70
+ "[yellow]GitHub platform commands are not yet implemented.[/yellow]"
71
+ )
72
+ console.print(
73
+ "Use the generic ticket commands for GitHub operations:\n"
74
+ " mcp-ticketer ticket create 'My issue'\n"
75
+ " mcp-ticketer ticket list"
76
+ )
77
+
78
+
79
+ @github_app.command("configure")
80
+ def github_configure():
81
+ """Configure GitHub adapter (placeholder - not yet implemented)."""
82
+ from rich.console import Console
83
+
84
+ console = Console()
85
+ console.print(
86
+ "[yellow]GitHub platform commands are not yet implemented.[/yellow]"
87
+ )
88
+ console.print(
89
+ "Use 'mcp-ticketer init --adapter github' to configure GitHub adapter."
90
+ )
91
+
92
+
93
+ # AITrackdown platform commands (placeholder)
94
+ aitrackdown_app = typer.Typer(
95
+ name="aitrackdown",
96
+ help="AITrackdown-specific local file management",
97
+ )
98
+
99
+
100
+ @aitrackdown_app.command("info")
101
+ def aitrackdown_info():
102
+ """Show AITrackdown storage information (placeholder - not yet implemented)."""
103
+ from rich.console import Console
104
+
105
+ console = Console()
106
+ console.print(
107
+ "[yellow]AITrackdown platform commands are not yet implemented.[/yellow]"
108
+ )
109
+ console.print(
110
+ "Use the generic ticket commands for AITrackdown operations:\n"
111
+ " mcp-ticketer ticket create 'My ticket'\n"
112
+ " mcp-ticketer ticket list"
113
+ )
114
+
115
+
116
+ @aitrackdown_app.command("configure")
117
+ def aitrackdown_configure():
118
+ """Configure AITrackdown adapter (placeholder - not yet implemented)."""
119
+ from rich.console import Console
120
+
121
+ console = Console()
122
+ console.print(
123
+ "[yellow]AITrackdown platform commands are not yet implemented.[/yellow]"
124
+ )
125
+ console.print(
126
+ "Use 'mcp-ticketer init --adapter aitrackdown' to configure AITrackdown adapter."
127
+ )
128
+
129
+
130
+ # Register all platform command groups
131
+ app.add_typer(jira_app, name="jira")
132
+ app.add_typer(github_app, name="github")
133
+ app.add_typer(aitrackdown_app, name="aitrackdown")