parameters: (ctx)
docstring: Verifies all files have the corresponding license
docstring_summary: Verifies all files have the corresponding license
docstring_tokens: Verifies all files have the corresponding license
function: def verifylicense(ctx):
      """Verifies all files have the corresponding license"""
      res = run("find . -name '*.go'", hide="out")
      no_license = False
      for file in res.stdout.splitlines():
          res = run("grep -q License {}".format(file), warn=True)
          if not res.ok:
              no_license = True
              print("{} is missing license".format(file))
      if no_license:
          raise Exit(message="#### Files with no license found.\n#### Please run ""inv bumplicense"" to add the license header")
function_tokens: def verifylicense ( ctx ) : res = run ( "find . -name '*.go'" , hide = "out" ) no_license = False for file in res . stdout . splitlines ( ) : res = run ( "grep -q License {}" . format ( file ) , warn = True ) if not res . ok : no_license = True print ( "{} is missing license" . format ( file ) ) if no_license : raise Exit ( message = "#### Files with no license found.\n#### Please run " "inv bumplicense" " to add the license header" )