obris-cli 0.2.0__tar.gz → 0.2.1__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.
Files changed (24) hide show
  1. {obris_cli-0.2.0 → obris_cli-0.2.1}/PKG-INFO +1 -1
  2. {obris_cli-0.2.0 → obris_cli-0.2.1}/pyproject.toml +1 -1
  3. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/commands/save.py +6 -1
  4. {obris_cli-0.2.0 → obris_cli-0.2.1}/.gitignore +0 -0
  5. {obris_cli-0.2.0 → obris_cli-0.2.1}/README.md +0 -0
  6. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/__init__.py +0 -0
  7. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/api/__init__.py +0 -0
  8. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/api/client.py +0 -0
  9. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/api/knowledge.py +0 -0
  10. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/api/topics.py +0 -0
  11. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/assets/icon.png +0 -0
  12. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/cli.py +0 -0
  13. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/commands/__init__.py +0 -0
  14. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/commands/auth.py +0 -0
  15. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/commands/env.py +0 -0
  16. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/commands/knowledge.py +0 -0
  17. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/commands/topic.py +0 -0
  18. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/config.py +0 -0
  19. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/output.py +0 -0
  20. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/utils/__init__.py +0 -0
  21. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/utils/capture.py +0 -0
  22. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/utils/notify.py +0 -0
  23. {obris_cli-0.2.0 → obris_cli-0.2.1}/src/obris/utils/upload.py +0 -0
  24. {obris_cli-0.2.0 → obris_cli-0.2.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: obris-cli
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Save, organize, and access your knowledge from the command line
5
5
  Project-URL: Homepage, https://obris.ai
6
6
  Project-URL: Repository, https://github.com/obris-dev/obris
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "obris-cli"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Save, organize, and access your knowledge from the command line"
5
5
 
6
6
  requires-python = ">=3.10"
@@ -11,8 +11,9 @@ from obris.utils import capture, notify, upload
11
11
  @click.argument("filepath", required=False, type=click.Path(exists=True, path_type=Path))
12
12
  @click.option("--screenshot", is_flag=True, help="Take a screenshot and upload")
13
13
  @click.option("--name", default=None, help="Display name")
14
+ @click.option("--prompt", "prompt_name", is_flag=True, help="Prompt for a name via dialog")
14
15
  @click.option("--topic", default=None, help="Topic ID (defaults to Scratch)")
15
- def save(filepath, screenshot, name, topic):
16
+ def save(filepath, screenshot, name, prompt_name, topic):
16
17
  """Save a file or screenshot to a topic. Screenshots require macOS or Linux."""
17
18
  topic_id = topic or config.get_scratch_topic_id()
18
19
 
@@ -22,6 +23,10 @@ def save(filepath, screenshot, name, topic):
22
23
  except SystemExit:
23
24
  notify.send("Obris", "Screenshot cancelled")
24
25
  raise
26
+ if prompt_name:
27
+ name = capture.prompt_name()
28
+ if not name:
29
+ raise SystemExit("Name is required.")
25
30
  name = name or path.stem
26
31
  notify.send_quiet("Obris", "Uploading...")
27
32
  try:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes