Skip to content

Latest commit

 

History

History
executable file
·
29 lines (17 loc) · 1.71 KB

generate_workspace_snippet.md

File metadata and controls

executable file
·
29 lines (17 loc) · 1.71 KB

generate_workspace_snippet Rule

generate_workspace_snippet

generate_workspace_snippet(name, template, workspace_name, sha256_file, url_templates)

Defines an executable target that generates a workspace snippet suitable for inclusion in a markdown document.

Without a template, the utility will output an http_archive declaration. With a template, the utility will output the template replacing ${http_archive_statement} with the http_archive declaration.

PARAMETERS

Name Description Default Value
name The name of the executable target as a string. none
template Optional. The path to a template file as a string. None
workspace_name Optional. The name of the workspace. If not provided, the workspace name is derived from the owner and repository name. None
sha256_file Optional. The path to a file with the SHA256 value for the release archive. None
url_templates Optional. A list of templates to use when generating the URL values for the release archive. []