Skip to content

Commit 030053c

Browse files
committed
Fix role completion
1 parent 2f80d76 commit 030053c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gptcmd/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _complete_from_key(d: Dict, text: str) -> List[str]:
137137

138138
@classmethod
139139
def _complete_role(cls, text: str) -> List[str]:
140-
return [role for role in cls.ROLES if role.startswith(text)]
140+
return [role for role in cls.KNOWN_ROLES if role.startswith(text)]
141141

142142
@classmethod
143143
def _validate_role(cls, role: str) -> bool:

0 commit comments

Comments
 (0)