-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix the cli interface that the previous release broke
- Loading branch information
1 parent
349fef6
commit acc3501
Showing
2 changed files
with
5 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,8 @@ homepage = "https://github.com/skorokithakis/shortuuid/" | |
authors = ["Stavros Korokithakis <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.scripts] | ||
shortuuid = "shortuuid:cli.main" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.5" |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from .main import uuid | ||
|
||
if __name__ == "__main__": | ||
|
||
def main(): | ||
print(uuid()) |
acc3501
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just found this — it adds a
shortuuid
script but breakspython -m shortuuid
acc3501
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@merwok Hmm, can you use the script instead?
python -m shortuuid
was never an official way to run ShortUUID.acc3501
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did add it in #43 and was using it :)
But
shortuuid
as a script is shorter and available when shortuuid is installed, so that works too!(I think I wrote my comment too tired and somehow thought this meant I could not make short UUIDs on the command-line anymore)
acc3501
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, you still can! I'd rather support only one way to do that, and calling it directly seems better UX.