Exemple #1
0
 def usage(self):
     print "Usage: toolset <query>"
     print "This is a listing of different CLI tools you use to perform various tasks."
     print "Current supported group names include:"
     output_tools(self.modules, 13)
     print
     print "Optional Flags:"
     print "    -e | --edit  : opens the file for editing"
Exemple #2
0
    def usage(self):
        print "Editor Commands (preceded by ':'):"
        output_tools(self.detail, spacing=3, mode=OutputAlignment.LEFT)
        print

        print "Code Folding:"
        print "   set fdm=indent => sets fold method to the indent."
        print "   zc => close fold."
        print "   zo => open fold."
        print

        print "Shell Commands:"
        print "   :%! :"
        print "     => % means apply to whole file"
        print "     => ! means execute in shell, and capture output in vim"
        print
        print "   Examples:"
        print "      :%!jq '.' => convert entire json file to nicer format"
        print

        print "From CLI:"
        print "   vim +<command, no colon> <file>"
Exemple #3
0
    def usage(self):
        print "-" * 33 + " One Liners " + "-" * 35
        print "Quick Reference:"
        output_tools(self.reference, spacing=3, mode=OutputAlignment.LEFT)
        print

        print "Git Tagging:"
        output_tools(self.tagging, spacing=3, mode=OutputAlignment.LEFT)
        print

        print "Investigative Work:"
        output_tools(self.analysis, spacing=3, mode=OutputAlignment.LEFT)
        print

        print "-" * 35 + " Whoops... " + "-" * 35
        print "Undo git fetch:"
        print "   git remote remove A"
        print "   git remote add A <path/to/repo>"
        print
        print "Delete git tag:"
        print "   git tag -d <tag_name>"
        print "   git push origin :refs/tags/<tag_name>"
        print
Exemple #4
0
 def usage(self):
     print "These tools are useful to find out info about your computer."
     output_tools(self.detail, 15)
Exemple #5
0
 def usage(self):
     print "These tools are useful to find out more information about web services."
     output_tools(self.detail, 23)