catime 0.2.0__py3-none-any.whl → 0.3.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.
- catime/__init__.py +1 -1
- catime/cli.py +6 -0
- {catime-0.2.0.dist-info → catime-0.3.0.dist-info}/METADATA +1 -1
- catime-0.3.0.dist-info/RECORD +7 -0
- catime-0.2.0.dist-info/RECORD +0 -7
- {catime-0.2.0.dist-info → catime-0.3.0.dist-info}/WHEEL +0 -0
- {catime-0.2.0.dist-info → catime-0.3.0.dist-info}/entry_points.txt +0 -0
- {catime-0.2.0.dist-info → catime-0.3.0.dist-info}/licenses/LICENSE +0 -0
catime/__init__.py
CHANGED
catime/cli.py
CHANGED
|
@@ -103,9 +103,15 @@ def main():
|
|
|
103
103
|
print(" catime yesterday List yesterday's cats")
|
|
104
104
|
print(" catime 2026-01-30 List all cats from a date")
|
|
105
105
|
print(" catime 2026-01-30T05 View the cat from a specific hour")
|
|
106
|
+
print(" catime latest View the latest cat")
|
|
106
107
|
print(" catime --list List all cats")
|
|
107
108
|
return
|
|
108
109
|
|
|
110
|
+
# latest
|
|
111
|
+
if args.query == "latest":
|
|
112
|
+
print_cat(cats[-1], len(cats))
|
|
113
|
+
return
|
|
114
|
+
|
|
109
115
|
# Try as number first
|
|
110
116
|
if args.query.isdigit():
|
|
111
117
|
idx = int(args.query) - 1
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
catime/__init__.py,sha256=i8FYHW-V2UO0kNEghreL2-uQ70fLxsGQ0z5kGoNEbfk,70
|
|
2
|
+
catime/cli.py,sha256=f3UGX1yFCdypvs28QCbG9c9Mtcv8YN2WnpfcN5OTSEo,4404
|
|
3
|
+
catime-0.3.0.dist-info/METADATA,sha256=5SWm7EQw-aBNYIaLv0Bj5BYVy-biABZA8yvypv_VzqQ,665
|
|
4
|
+
catime-0.3.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
5
|
+
catime-0.3.0.dist-info/entry_points.txt,sha256=oPgi6h026vMo9YyEOH3wuNtD3A28e-s1ChJs-KWWGXw,43
|
|
6
|
+
catime-0.3.0.dist-info/licenses/LICENSE,sha256=p_h5YRMaNCwMqGXX5KDrk49_NWGpzAJ2d6IhKa67B0E,1064
|
|
7
|
+
catime-0.3.0.dist-info/RECORD,,
|
catime-0.2.0.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
catime/__init__.py,sha256=f37KsktucfUui7NyCuEJRZT_WMFOIcUFCWao5y9wsyM,70
|
|
2
|
-
catime/cli.py,sha256=dDMYM6UvXQlDldni2rfQ70CsjUwIaQGPZj6Egcd4t8M,4243
|
|
3
|
-
catime-0.2.0.dist-info/METADATA,sha256=bfR_tARqCSml9MpfEOnZZnBUz1bMgGF3OTPSsX88GV8,665
|
|
4
|
-
catime-0.2.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
5
|
-
catime-0.2.0.dist-info/entry_points.txt,sha256=oPgi6h026vMo9YyEOH3wuNtD3A28e-s1ChJs-KWWGXw,43
|
|
6
|
-
catime-0.2.0.dist-info/licenses/LICENSE,sha256=p_h5YRMaNCwMqGXX5KDrk49_NWGpzAJ2d6IhKa67B0E,1064
|
|
7
|
-
catime-0.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|