-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose some useful type/func to
pkg
to be called by external Go mod…
…ules (#336) * refactor * Export ImportItem/List to pkg * Remove meta2 reference * Remove meta2 reference * Move `Batch` out of `Config` * Not chdir in test * Remove write file sync * Improve `ImportParalle` to allow it accept list longer than paralleism * Differentiate exported Config and internally used cfg types for (non)interactive mode && add comments for exported types * revert the vm acctest to use os profile ubuntu 16.04 * pass gosec * `Meta` methods accept context
- Loading branch information
Showing
29 changed files
with
526 additions
and
449 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package config | ||
|
||
import "github.com/Azure/aztfy/pkg/config" | ||
|
||
type InteractiveModeConfig struct { | ||
config.Config | ||
|
||
MockMeta bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package config | ||
|
||
import "github.com/Azure/aztfy/pkg/config" | ||
|
||
type NonInteractiveModeConfig struct { | ||
config.Config | ||
|
||
MockMeta bool | ||
PlainUI bool | ||
GenMappingFileOnly bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.