tmail-cli 0.1.0__tar.gz → 0.2.0__tar.gz

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.
@@ -9,7 +9,6 @@ git clone https://github.com/rkriad585/tmail.git
9
9
  cd tmail
10
10
  pip install uv
11
11
  uv sync
12
- tmail
13
12
  ```
14
13
 
15
14
  ## Development
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tmail-cli
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: CLI tool for generating temporary email addresses and viewing inboxes
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -12,7 +12,7 @@ Requires-Dist: rich
12
12
  Description-Content-Type: text/markdown
13
13
 
14
14
  <p align="center">
15
- <img src="https://img.shields.io/badge/tmail-v0.1.0-blue" alt="version">
15
+ <img src="https://img.shields.io/badge/tmail-v0.2.0-blue" alt="version">
16
16
  <img src="https://img.shields.io/badge/python-%3E%3D3.10-green" alt="python">
17
17
  <img src="https://img.shields.io/badge/license-MIT-yellow" alt="license">
18
18
  </p>
@@ -28,8 +28,9 @@ and live-polls their inbox. Built with Python and [Rich](https://github.com/Text
28
28
  ## Quick start
29
29
 
30
30
  ```bash
31
- pip install uv
32
- uv tool install tmail
31
+ pip install tmail-cli
32
+ # or with uv:
33
+ pip install uv && uv tool install tmail-cli
33
34
  tmail # interactive TUI
34
35
  ```
35
36
 
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://img.shields.io/badge/tmail-v0.1.0-blue" alt="version">
2
+ <img src="https://img.shields.io/badge/tmail-v0.2.0-blue" alt="version">
3
3
  <img src="https://img.shields.io/badge/python-%3E%3D3.10-green" alt="python">
4
4
  <img src="https://img.shields.io/badge/license-MIT-yellow" alt="license">
5
5
  </p>
@@ -15,8 +15,9 @@ and live-polls their inbox. Built with Python and [Rich](https://github.com/Text
15
15
  ## Quick start
16
16
 
17
17
  ```bash
18
- pip install uv
19
- uv tool install tmail
18
+ pip install tmail-cli
19
+ # or with uv:
20
+ pip install uv && uv tool install tmail-cli
20
21
  tmail # interactive TUI
21
22
  ```
22
23
 
@@ -2,9 +2,15 @@
2
2
 
3
3
  ## Installation
4
4
 
5
+ ```bash
6
+ pip install tmail-cli
7
+ ```
8
+
9
+ Or with `uv`:
10
+
5
11
  ```bash
6
12
  pip install uv
7
- uv tool install tmail
13
+ uv tool install tmail-cli
8
14
  ```
9
15
 
10
16
  Or from source:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tmail-cli"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
4
  description = "CLI tool for generating temporary email addresses and viewing inboxes"
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -433,7 +433,7 @@ def main():
433
433
  from importlib.metadata import version as _v
434
434
  VERSION = _v("tmail-cli")
435
435
  except Exception:
436
- VERSION = "0.1.0"
436
+ VERSION = "0.2.0"
437
437
 
438
438
  parser = argparse.ArgumentParser(
439
439
  description="Disposable email addresses in your terminal.",
@@ -489,6 +489,9 @@ def main():
489
489
 
490
490
  if args.inbox:
491
491
  target = args.inbox
492
+ if target == "__generate__" and generated is None:
493
+ print("error: --inbox requires an EMAIL argument or --generate", file=sys.stderr)
494
+ sys.exit(1)
492
495
  if target == "__generate__" or generated is not None:
493
496
  if generated is None:
494
497
  generated = get_random_email()
@@ -501,6 +504,9 @@ def main():
501
504
 
502
505
  if args.watch:
503
506
  target = args.watch
507
+ if target == "__generate__" and generated is None:
508
+ print("error: --watch requires an EMAIL argument or --generate", file=sys.stderr)
509
+ sys.exit(1)
504
510
  if target == "__generate__" or generated is not None:
505
511
  if generated is None:
506
512
  generated = get_random_email()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes