lp:~sforshee/powerd/cleanup-cli

Created by Seth Forshee on 2014-03-03 and last modified on 2014-03-03
Get this branch:
bzr branch lp:~sforshee/powerd/cleanup-cli
Only Seth Forshee can upload to this branch. If you are Seth Forshee please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Seth Forshee
Project:
powerd
Status:
Development

Recent revisions

128. By Seth Forshee on 2014-03-03

powerd-cli: Fix display command argument processing

In the case that the first option to the display command was
not "on" it would mistakenly compare argv[2] against "dc". If
there is only one option to the command this is past the end
of argv and could cause a segfault.

Also add some missing spaces and fix the checking of the
return value from build_display_request().

127. By Seth Forshee on 2014-03-03

powerd-cli: Add -Wall to compiler flags

Surprisingly this doesn't produce any new warnings right now.

126. By Seth Forshee on 2014-03-03

powerd-cli: Get rid of CamelCase

Most of the code uses underscores as delimiters between words, so
convert holdouts using CamelCase to be consistent. Obviously use
of CamelCase from external libs cannot be changed.

125. By Seth Forshee on 2014-03-03

powerd-cli: Use help text from commands

Rather than collecting the help text for various commands all in
one place, use the data from struc cli_cmd. Also make numerous
enhancments to the help command and its output:

 * Automatically format the help text
 * Use terminal width for wrapping
 * Support 'powerd-cli help <command>' syntax to get more help
   on a specific command

Also extend the information in struct cli_cmd to supply detailed
information for each command's options.

124. By Seth Forshee on 2014-02-01

powerd-cli: Convert help command to new mechanism

Also improve usage to use information provided in command
structs.

123. By Seth Forshee on 2014-02-01

powerd-cli: Convert test command to use new mechanism

122. By Seth Forshee on 2014-02-01

powerd-cli: Convert stats command to new mechanism

121. By Seth Forshee on 2014-02-01

powerd-cli: Convert listen to new mechanism

120. By Seth Forshee on 2014-02-01

powerd-cli: Covert list command to new mechanism

119. By Seth Forshee on 2014-02-01

powerd-cli: Convert display commands to new mechanism

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:powerd
This branch contains Public information 
Everyone can see this information.

Subscribers