Class BashCompletionTool

java.lang.Object
com.powsybl.tools.autocompletion.BashCompletionTool
All Implemented Interfaces:
Tool

@AutoService(Tool.class) public class BashCompletionTool extends Object implements Tool
Author:
Sylvain Leclerc <sylvain.leclerc at rte-france.com>
  • Constructor Details

    • BashCompletionTool

      public BashCompletionTool()
  • Method Details

    • getCommand

      public Command getCommand()
      Description copied from interface: Tool
      Get the command of the tool.
      Specified by:
      getCommand in interface Tool
    • run

      public void run(org.apache.commons.cli.CommandLine line, ToolRunningContext context) throws Exception
      Description copied from interface: Tool
      Run the tool.
      Specified by:
      run in interface Tool
      Parameters:
      line - the command line arguments
      context - tool execution context
      Throws:
      Exception - if the command fails
    • generateCompletionScript

      public void generateCompletionScript(List<Tool> tools, Path outputPath) throws IOException
      Throws:
      IOException