Coverage for little_loops/cli/issues/next_id.py: 0%

1"""ll-issues next-id: Print the next globally unique issue number."""

2

3 from __future__ import annotations

4

5 from typing import TYPE_CHECKING

6

7 if TYPE_CHECKING:

8 from little_loops.config import BRConfig

9

10

11 def cmd_next_id(config: BRConfig) -> int:

12 """Print the next globally unique issue number.

13

14 Args:

15 config: Project configuration

16

17 Returns:

18 Exit code (0 = success)

19 """

20 from little_loops.issue_parser import get_next_issue_number

21

22 next_num = get_next_issue_number(config)

23 print(f"{next_num:03d}")

24 return 0