Skip to content

Conversation

@Lucas-C
Copy link

@Lucas-C Lucas-C commented Dec 4, 2023

This is a follow-up on a previous PR: #1823

I made sure that the script works with the latest version of Shaarli,
and added the "inverse" script, that convert from JSON to a datastore.php file.

Usage:

composer datastore2json > datastore.json
composer json2datastore datastore.json > data/datastore.php

Or:

php -f datastore2json > datastore.json
php -f json2datastore datastore.json > data/datastore.json

@Lucas-C Lucas-C changed the title Adding datastore2json script Adding datastore2json & json2datastore scripts Dec 4, 2023
@Lucas-C
Copy link
Author

Lucas-C commented Dec 5, 2023

To give some context, in my usage of Shaarli, those scripts serve as a base to perform several operations on all my bookmarks:

  • remove a tag from all bookmarks
  • replace a tag by one or several others in all bookmarks
  • perform a regex-based substitution in the descriptions of all bookmarks

@nodiscc nodiscc added this to the backlog to the future milestone Nov 15, 2024
@nodiscc nodiscc removed the in review label May 1, 2025
@SansGuidon
Copy link

This would be awesome.

@nodiscc nodiscc modified the milestones: backlog to the future, 0.15.0 May 28, 2025
@nodiscc nodiscc modified the milestones: 0.15.0, 0.16.0 Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants