Skip to content

Commit

Permalink
Add format tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke committed Nov 22, 2023
1 parent 76855ef commit 140df95
Show file tree
Hide file tree
Showing 5 changed files with 891 additions and 146 deletions.
3 changes: 2 additions & 1 deletion internal/provider/archiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ type Archiver interface {
type ArchiverBuilder func(outputPath string) Archiver

var archiverBuilders = map[string]ArchiverBuilder{
"zip": NewZipArchiver,
"zip": NewZipArchiver,
"tar.gz": NewTarGzArchiver,
}

func getArchiver(archiveType string, outputPath string) Archiver {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/data_source_archive_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (d *archiveFileDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
},
"type": schema.StringAttribute{
Description: "The type of archive to generate. NOTE: `zip` is supported.",
Description: "The type of archive to generate. NOTE: `zip` and `tar.gz` is supported.",
Required: true,
},
"source_content": schema.StringAttribute{
Expand Down
Loading

0 comments on commit 140df95

Please sign in to comment.