git.cweiske.de
/
shpub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
86ba6dc
)
Add "updated" option
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 15 Sep 2016 05:51:14 +0000
(07:51 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 15 Sep 2016 05:51:14 +0000
(07:51 +0200)
src/shpub/Command/AbstractProps.php
patch
|
blob
|
history
diff --git
a/src/shpub/Command/AbstractProps.php
b/src/shpub/Command/AbstractProps.php
index b560fbefa45fcce9563ef46353eada8e74ebebb0..0184c10b5f840be15a90dbd9f8ff37ab312154b1 100644
(file)
--- a/
src/shpub/Command/AbstractProps.php
+++ b/
src/shpub/Command/AbstractProps.php
@@
-61,6
+61,16
@@
class Command_AbstractProps
'default' => null,
)
);
'default' => null,
)
);
+ $cmd->addOption(
+ 'updated',
+ array(
+ 'long_name' => '--updated',
+ 'description' => 'Update date',
+ 'help_name' => 'DATE',
+ 'action' => 'StoreString',
+ 'default' => null,
+ )
+ );
$cmd->addOption(
'slug',
array(
$cmd->addOption(
'slug',
array(
@@
-104,6
+114,11
@@
class Command_AbstractProps
'published', $cmdRes->options['published']
);
}
'published', $cmdRes->options['published']
);
}
+ if ($cmdRes->options['updated'] !== null) {
+ $req->req->addPostParameter(
+ 'updated', $cmdRes->options['updated']
+ );
+ }
if (count($cmdRes->options['categories'])) {
$req->addPostParameter(
'category', $cmdRes->options['categories']
if (count($cmdRes->options['categories'])) {
$req->addPostParameter(
'category', $cmdRes->options['categories']