First release
This commit is contained in:
parent
d8b2defa2e
commit
b959030fb0
|
@ -0,0 +1,7 @@
|
|||
|
||||
# 2024-02-23
|
||||
|
||||
## Changed
|
||||
|
||||
- Thorough port from https://github.com/mpraeger/rofi-pinboard/ , removing the
|
||||
bash script, adding pip installation, cleaning up flow, etc.
|
2
Makefile
2
Makefile
|
@ -15,5 +15,5 @@ install: venv
|
|||
@$(VENV_PYTHON) -m pre_commit install
|
||||
|
||||
docs: install
|
||||
@$(VENV_BIN)/cog -r ./README.md
|
||||
@ TERMINAL_WIDTH=80 $(VENV_BIN)/cog -r ./README.md
|
||||
@$(VENV_BIN)/scriv collect
|
||||
|
|
49
README.md
49
README.md
|
@ -5,26 +5,69 @@
|
|||
<!---[[[cog
|
||||
import cog
|
||||
import subprocess
|
||||
res = subprocess.check_output(["rofi_pinboard","--help"],stderr=subprocess.DEVNULL, text=True).splitlines()
|
||||
res = subprocess.check_output(["rofi-pinboard","--help"],stderr=subprocess.DEVNULL, text=True).splitlines()
|
||||
cog.outl("## rofi-pinboard")
|
||||
cog.outl("```text")
|
||||
for line in res:
|
||||
cog.outl(line)
|
||||
cog.outl("```")
|
||||
]]]-->
|
||||
## rofi-pinboard
|
||||
```text
|
||||
|
||||
Usage: rofi-pinboard [OPTIONS] COMMAND [ARGS]...
|
||||
|
||||
rofi pinboard
|
||||
|
||||
╭─ Options ────────────────────────────────────────────────────────────────────╮
|
||||
│ --version Show the version and exit. │
|
||||
│ --install-completion Install completion for the current shell. │
|
||||
│ --show-completion Show completion for the current shell, to copy │
|
||||
│ it or customize the installation. │
|
||||
│ --help Show this message and exit. │
|
||||
╰──────────────────────────────────────────────────────────────────────────────╯
|
||||
╭─ Commands ───────────────────────────────────────────────────────────────────╮
|
||||
│ rofi Call rofi and launch a browser with the selected url. │
|
||||
│ setup Setup Pinboard │
|
||||
╰──────────────────────────────────────────────────────────────────────────────╯
|
||||
|
||||
```
|
||||
<!-- [[[end]]] -->
|
||||
|
||||
<!---[[[cog
|
||||
import cog
|
||||
from rofi_pinboard.cli import _subcommand_names
|
||||
from rofi_pinboard.__main__ import _subcommand_names
|
||||
for subname in _subcommand_names:
|
||||
res = subprocess.check_output(["rofi_pinboard",subname, "--help"],stderr=subprocess.DEVNULL, text=True).splitlines()
|
||||
res = subprocess.check_output(["rofi-pinboard",subname, "--help"],stderr=subprocess.DEVNULL, text=True).splitlines()
|
||||
cog.outl(f"## rofi-pinboard {subname}")
|
||||
cog.outl("```text")
|
||||
for line in res:
|
||||
cog.outl(line)
|
||||
cog.outl("```")
|
||||
]]]-->
|
||||
## rofi-pinboard setup
|
||||
```text
|
||||
|
||||
Usage: rofi-pinboard setup [OPTIONS]
|
||||
|
||||
Setup Pinboard
|
||||
|
||||
╭─ Options ────────────────────────────────────────────────────────────────────╮
|
||||
│ --api-token TEXT [default: (dynamic)] │
|
||||
│ --help Show this message and exit. │
|
||||
╰──────────────────────────────────────────────────────────────────────────────╯
|
||||
|
||||
```
|
||||
## rofi-pinboard rofi
|
||||
```text
|
||||
|
||||
Usage: rofi-pinboard rofi [OPTIONS]
|
||||
|
||||
Call rofi and launch a browser with the selected url.
|
||||
|
||||
╭─ Options ────────────────────────────────────────────────────────────────────╮
|
||||
│ --help Show this message and exit. │
|
||||
╰──────────────────────────────────────────────────────────────────────────────╯
|
||||
|
||||
```
|
||||
<!-- [[[end]]] -->
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# rofi-pinboard
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
# Command line use
|
||||
<!---[[[cog
|
||||
import cog
|
||||
import subprocess
|
||||
res = subprocess.check_output(["rofi_pinboard","--help"],stderr=subprocess.DEVNULL, text=True).splitlines()
|
||||
cog.outl("## rofi-pinboard")
|
||||
cog.outl("```text")
|
||||
for line in res:
|
||||
cog.outl(line)
|
||||
cog.outl("```")
|
||||
]]]-->
|
||||
|
||||
<!-- [[[end]]] -->
|
||||
|
||||
<!---[[[cog
|
||||
import cog
|
||||
from rofi_pinboard.cli import _subcommand_names
|
||||
for subname in _subcommand_names:
|
||||
res = subprocess.check_output(["rofi_pinboard",subname, "--help"],stderr=subprocess.DEVNULL, text=True).splitlines()
|
||||
cog.outl(f"## rofi-pinboard {subname}")
|
||||
cog.outl("```text")
|
||||
for line in res:
|
||||
cog.outl(line)
|
||||
cog.outl("```")
|
||||
]]]-->
|
||||
|
||||
<!-- [[[end]]] -->
|
||||
=======
|
||||
pinboard/rofi integration
|
||||
>>>>>>> d0de96b39a6318529bc4c676b9ddc3f0685a3cc0
|
Loading…
Reference in New Issue