-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add define file - support more prompt mode
- Loading branch information
lijunnzhang
committed
Jun 27, 2024
1 parent
544078d
commit 8fc3e7d
Showing
3 changed files
with
104 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import enum | ||
from typing import Callable, Dict, List, Tuple, TypedDict, Union | ||
|
||
|
||
@enum.unique | ||
class GitCommandType(enum.Enum): | ||
Branch = "Branch" | ||
Commit = "Commit" | ||
Conflict = "Conflict" | ||
Fetch = "Fetch" | ||
Index = "Index" | ||
Log = "Log" | ||
Merge = "Merge" | ||
Push = "Push" | ||
Remote = "Remote" | ||
Stash = "Stash" | ||
Tag = "Tag" | ||
WorkingTree = "Working tree" | ||
Submodule = "Submodule" | ||
Setting = "Setting" | ||
Extra = "Extra" # default | ||
|
||
|
||
GitCommand = Union[str, Callable[[Union[List, Tuple]], None]] | ||
|
||
|
||
class GitProxyOptions(TypedDict): | ||
belong: GitCommandType | ||
command: GitCommand | ||
help: str | ||
has_arguments: bool | ||
|
||
|
||
GitProxyOptionsGroup = Dict[str, GitProxyOptions] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters