1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Add Pinboard import

This commit is contained in:
Jeremy Benoist 2016-11-04 22:44:31 +01:00
parent b5571b52cc
commit 9ab024b4f5
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
24 changed files with 596 additions and 2 deletions

View file

@ -17,7 +17,7 @@ class ImportCommand extends ContainerAwareCommand
->setDescription('Import entries from a JSON export')
->addArgument('userId', InputArgument::REQUIRED, 'User ID to populate')
->addArgument('filepath', InputArgument::REQUIRED, 'Path to the JSON file')
->addOption('importer', null, InputArgument::OPTIONAL, 'The importer to use: v1, v2, instapaper, readability, firefox or chrome', 'v1')
->addOption('importer', null, InputArgument::OPTIONAL, 'The importer to use: v1, v2, instapaper, pinboard, readability, firefox or chrome', 'v1')
->addOption('markAsRead', null, InputArgument::OPTIONAL, 'Mark all entries as read', false)
;
}
@ -56,6 +56,9 @@ class ImportCommand extends ContainerAwareCommand
case 'instapaper':
$import = $this->getContainer()->get('wallabag_import.instapaper.import');
break;
case 'pinboard':
$import = $this->getContainer()->get('wallabag_import.pinboard.import');
break;
default:
$import = $this->getContainer()->get('wallabag_import.wallabag_v1.import');
}