~mjorgensen/CapitalPins

A small utility for renaming Pinboard tags with.

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~mjorgensen/CapitalPins
read/write
git@git.sr.ht:~mjorgensen/CapitalPins

You can also use your local clone with git send-email.

#CapitalPins

A small utility to rename Pinboard tags.

#Requirements

  • Python >= 3.8
  • From pip:
    • Pinboard>=2.0
    • PyYAML

Install pip requirements with:

pip install -r requirements.txt

#Usage

usage: run.py [-h] [--dry-run] [-U] old_name [new_name]

Capitalize Pinboard tags.

positional arguments:
  old_name
  new_name

optional arguments:
  -h, --help   show this help message and exit
  --dry-run    Perform a dry run, doesn't change anything.
  -U, --upper  Renames the tag to an UPPERCASE string.

#Examples

python run.py tag_name

The new tag name would be Tag_name.

python run.py -U tag_name

The new tag name would be TAG_NAME.

python run.py old_tag new_tag

This would rename old_tag to new_tag. Useful for those pesky edge cases.