Class URLConverter

java.lang.Object
ai.wanaku.cli.main.converter.URLConverter
All Implemented Interfaces:
picocli.CommandLine.ITypeConverter<URL>

public class URLConverter extends Object implements picocli.CommandLine.ITypeConverter<URL>
  • Constructor Details

    • URLConverter

      public URLConverter()
  • Method Details

    • convert

      public URL convert(String value) throws Exception
      Specified by:
      convert in interface picocli.CommandLine.ITypeConverter<URL>
      Parameters:
      value - the command line argument String value
      Returns:
      the URL object
      Throws:
      Exception - if any error occurs during the conversion.