Sha256: efbcc23984edef737385130da7f907a6f7f9c089c9d7a650fb3718a83dd99323

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
$:.unshift(File.join(File.dirname(__FILE__),'..','lib'))
require 'phper'

phper = File.join(File.dirname(__FILE__),"phper")
puts "# phper CLI commands"
cmds = Phper::Commands.new

puts "<div>"
cmds.commands.sort { |a,b| a <=> b }.each { |cmd|
    puts "<a href='#commands_#{cmd}'/>#{cmd}</a>&nbsp;"
}
puts "</div>"

cmds.commands.sort { |a,b| a <=> b }.each { |cmd|
    puts "<a name='commands_#{cmd}'/>"
    puts "## #{cmd}"
    puts ""
    `#{phper} help #{cmd}`.each_line { |line|
        puts "    #{line}"
    }
    # %x{#{phper} help #{cmd}}
}

exit

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phper-0.8.5 bin/markdown
phper-0.8.4 bin/markdown
phper-0.8.3 bin/markdown