def commands_from(path)
      if Pathname.new(path).absolute? and File.exist?(path)
        load_commands(path)
      else
        $LOAD_PATH.each do |load_path|
          commands_path = File.join(load_path,path)
          load_commands(commands_path)
        end
      end
    end
def commands_from(path)
      if Pathname.new(path).absolute? and File.exist?(path)
        load_commands(path)
      else
        $LOAD_PATH.each do |load_path|
          commands_path = File.join(load_path,path)
          load_commands(commands_path)
        end
      end
    end
Loads ruby files in the load path that start with
 +path+, which are presumed to be commands for your executable.
 This is useful for decomposing your bin file into different classes, but
 can also be used as a plugin mechanism, allowing users to provide additional
 commands for your app at runtime.  All that being said, it's basically
 a glorified +require+.

 path:: a path from which to load <code>.rb</code> files that, presumably, contain commands.  If this is an absolute path,
        any files in that path are loaded.  If not, it is interpretted as relative to somewhere
        in the <code>LOAD_PATH</code>.

 == Example:

     # loads *.rb from your app's install - great for decomposing your bin file
     commands_from "my_app/commands"

     # loads *.rb files from the user's home dir - great and an extension/plugin mechanism
     commands_from File.join(ENV["HOME"],".my_app","plugins")