Merge lp:~colin-king/powerd/lp-1231455 into lp:powerd

Proposed by Colin Ian King
Status: Merged
Approved by: Ricardo Salveti
Approved revision: 114
Merged at revision: 114
Proposed branch: lp:~colin-king/powerd/lp-1231455
Merge into: lp:powerd
Diff against target: 45 lines (+13/-13)
1 file modified
cli/powerd-cli.c (+13/-13)
To merge this branch: bzr merge lp:~colin-king/powerd/lp-1231455
Reviewer Review Type Date Requested Status
Seth Forshee (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+208844@code.launchpad.net

Commit message

Minor tidy up and corrections to powerd cli help (LP: #1231455)

Description of the change

Minor clean up of powerd-cli, fixes my quibbles in LP: #1231455

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:114
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~colin-king/powerd/lp-1231455/+merge/208844/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/powerd-ci/140/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/powerd-trusty-armhf-ci/10
        deb: http://jenkins.qa.ubuntu.com/job/powerd-trusty-armhf-ci/10/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/powerd-ci/140/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Seth Forshee (sforshee) wrote :

+1

I actually started to do a big rewrite of cli while on a flight last month which would have ultimately resulted in cleaning up the help text, but I never got around to finishing it. Guess I should find time to do that sometime, becasue atm it's a bit of a mess.

review: Approve
Revision history for this message
Seth Forshee (sforshee) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'cli/powerd-cli.c'
--- cli/powerd-cli.c 2013-09-24 14:49:49 +0000
+++ cli/powerd-cli.c 2014-02-28 15:44:52 +0000
@@ -962,28 +962,28 @@
962 printf("active - request the active state, prevent the system from\n"\962 printf("active - request the active state, prevent the system from\n"\
963 "\tsuspending. This does not modify the screen state.\n");963 "\tsuspending. This does not modify the screen state.\n");
964 printf("active-nc - same as active, but relies on powerd to cleanup\n"\964 printf("active-nc - same as active, but relies on powerd to cleanup\n"\
965 "\tthe request. This is only for testing and will immediately"\965 "\tthe request. This is only for testing and will immediately\n"\
966 "exit, causing the request to be dropped.\n");966 "exit, causing the request to be dropped.\n");
967 printf("autobrightness <enable|disable> - enable or disable autobrightness\n");967 printf("autobrightness <enable|disable> - enable or disable autobrightness.\n");
968 printf("brightness <brightness> - set user screen brightness\n");968 printf("brightness <brightness> - set user screen brightness.\n");
969 printf("brightness-params - get brightness parameters (min, max, etc.)\n");969 printf("brightness-params - get brightness parameters (min, max, etc.)\n");
970 printf("clear-sys <cookie> - clear a System state request given a cookie\n");970 printf("clear-sys <cookie> - clear a System state request given a cookie.\n");
971 printf("clear-disp <cookie> - clear a Display state request given a cookie\n");971 printf("clear-disp <cookie> - clear a Display state request given a cookie.\n");
972 printf("client-test - test powerd registration / ack API\n");972 printf("client-test - test powerd registration / ack API.\n");
973 printf("display <on|dc> [bright] [proximity] [disableab]\n"\973 printf("display <on|dc> [bright] [proximity] [disableab]\n"\
974 "\tMake a display state request with the input parameters.\n"\974 "\tMake a display state request with the input parameters.\n"\
975 "\tThe first argument represents the state of the display:\n"\975 "\tThe first argument represents the state of the display:\n"\
976 "\tOn, Off, or Don't Care (dc).\n"\976 "\tOn (on) or Don't Care (dc),\n"\
977 "\tThe final optional arguments respectively:\n"\977 "\tThe final optional arguments respectively:\n"\
978 "\t * make the screen bright [bright]\n"\978 "\t * make the screen bright [bright]\n"\
979 "\t * enable the proximity sensor [proximity]\n"\979 "\t * enable the proximity sensor [proximity]\n"\
980 "\t * disable autobrightness [disableab]\n");980 "\t * disable autobrightness [disableab]\n");
981 printf("help - display this usage information\n");981 printf("help\t- display this usage information.\n");
982 printf("list - list outstanding requests\n");982 printf("list\t- list outstanding requests.\n");
983 printf("listen - listen for signals from powerd. This runs a\n"\983 printf("listen\t- listen for signals from powerd. This runs a\n"\
984 "\tgmainloop and must be manually killed.\n");984 "\t gmainloop and must be manually killed.\n");
985 printf("stats - print request statistics\n");985 printf("stats\t- print request statistics.\n");
986 printf("test - runs tests\n");986 printf("test\t- runs tests.\n");
987}987}
988988
989static void989static void

Subscribers

People subscribed via source and target branches