util/pconfig can list channel IDs
This commit is contained in:
parent
02ee7f17e8
commit
d67d8b6d6e
14
util/pconfig
14
util/pconfig
@ -13,11 +13,15 @@ if (count($helpArgs) === 1) {
|
|||||||
echo <<<'EndOfOutput'
|
echo <<<'EndOfOutput'
|
||||||
Gets, sets, or lists personal (per channel) configuration settings.
|
Gets, sets, or lists personal (per channel) configuration settings.
|
||||||
|
|
||||||
Usage: util/pconfig <channel_id>
|
Usage: util/pconfig
|
||||||
|
util/pconfig <channel_id>
|
||||||
util/pconfig <channel_id> <family>
|
util/pconfig <channel_id> <family>
|
||||||
util/pconfig <channel_id> <family> <key>
|
util/pconfig <channel_id> <family> <key>
|
||||||
util/pconfig <channel_id> <family> <key> <value>
|
util/pconfig <channel_id> <family> <key> <value>
|
||||||
|
|
||||||
|
util/pconfig
|
||||||
|
List all channel IDs
|
||||||
|
|
||||||
util/pconfig <channel_id>
|
util/pconfig <channel_id>
|
||||||
Displays all of the the channel's config entries
|
Displays all of the the channel's config entries
|
||||||
|
|
||||||
@ -68,3 +72,11 @@ if($argc == 2) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($argc == 1) {
|
||||||
|
$r = q("select channel_id, channel_name from channel");
|
||||||
|
if($r) {
|
||||||
|
foreach($r as $rr) {
|
||||||
|
echo sprintf('%4u %s', $rr['channel_id'], $rr['channel_name']) . PHP_EOL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user