github-terraform

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 3 Imported by: 0

README

Github-Terraform

Terraform import of your Github.

Go

Install

$ go get github.com/wesleimp/github-terraform

Usage

Repositories

Terraform import of your github repositories

$ github-terraform repos

Import repositories

Usage:
  github-terraform repositories [flags]

Aliases:
  repositories, repos

Flags:
  -d, --dest string    Path that will contains the output files (default "./output")
  -h, --help           help for repositories
  -n, --name string    Repository name. The name must contains owner/repo
  -o, --org string     Repository organization
      --page int       Current page (default 1)
      --per-page int   Items per page (default 100)
      --token string   Github token. This property is not necessary if you already exported $GITHUB_TOKEN
  -t, --type string    Repository type. Could be public or private
  -u, --user string    Repository user

Example

$ github-terraform repos -u wesleimp -d ./output/my-repos --per-page 5 -t public

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL