git.cweiske.de
/
shpub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for media endpoints
[shpub.git]
/
src
/
shpub
/
Command
/
Bookmark.php
diff --git
a/src/shpub/Command/Bookmark.php
b/src/shpub/Command/Bookmark.php
index e25365cc03efc109406c501d40e58deaacc21683..0116cb51068c752c5e926140410ddc34e890d190 100644
(file)
--- a/
src/shpub/Command/Bookmark.php
+++ b/
src/shpub/Command/Bookmark.php
@@
-6,6
+6,7
@@
class Command_Bookmark extends Command_AbstractProps
public static function opts(\Console_CommandLine $optParser)
{
$cmd = $optParser->addCommand('bookmark');
public static function opts(\Console_CommandLine $optParser)
{
$cmd = $optParser->addCommand('bookmark');
+ static::addOptHtml($cmd);
static::optsGeneric($cmd);
$cmd->addArgument(
'url',
static::optsGeneric($cmd);
$cmd->addArgument(
'url',
@@
-32,11
+33,11
@@
class Command_Bookmark extends Command_AbstractProps
}
$req = new Request($this->cfg->host, $this->cfg);
}
$req = new Request($this->cfg->host, $this->cfg);
- $req->
req->addPostParameter('h',
'entry');
- $req->
req->addPostParameter
('bookmark-of', $url);
+ $req->
setType(
'entry');
+ $req->
addProperty
('bookmark-of', $url);
if ($cmdRes->args['text']) {
if ($cmdRes->args['text']) {
- $req->
req->addPostParameter('content', $cmdRes->args['text
']);
+ $req->
addContent($cmdRes->args['text'], $cmdRes->options['html
']);
}
}