Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add DefaultTailpipeWorkspaceContent; Update VersionCheckerHostTailpipe #628

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions constants/default_workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,20 @@ const DefaultFlowpipeWorkspaceContent = `
# }
# }
`

const DefaultTailpipeWorkspaceContent = `
#
# For detailed descriptions, see the reference documentation
# at https://tailpipe.io/docs/reference/config-files/workspace
#
# workspace "all_options" {
#
# # General Options
# log_level = "info" # trace, debug, info, warn, error
# memory_max_mb = "1024" # the maximum memory to allow the CLI process in MB
# update_check = true # check for updates on startup
#
# # Terminal Options
# timing = true # show timing information
# }
`
2 changes: 2 additions & 0 deletions parse/workspace_profile_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func (l *WorkspaceProfileLoader[T]) ensureDefaultWorkspaceFile(workspaceProfileP
sampleContent = constants.DefaultFlowpipeWorkspaceContent
case *workspace_profile.PowerpipeWorkspaceProfile:
sampleContent = constants.DefaultPowerpipeWorkspaceContent
case *workspace_profile.TailpipeWorkspaceProfile:
sampleContent = constants.DefaultTailpipeWorkspaceContent
}
// always write the workspaces sample file; i.e. workspaces.spc.sample
err := os.MkdirAll(globalConfigPath, 0755)
Expand Down
5 changes: 2 additions & 3 deletions plugin/version_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import (
const (
VersionCheckerSchema = "https"
VersionCheckerHostSteampipe = "hub.steampipe.io"
// TODO Pskr Update the endpoint when hub.tailpipe.io is ready
VersionCheckerHostTailpipe = "hub-tailpipe-io.vercel.app"
VersionCheckerEndpoint = "api/plugin/version"
VersionCheckerHostTailpipe = "hub.tailpipe.io"
VersionCheckerEndpoint = "api/plugin/version"
)

// PluginVersionCheckReport
Expand Down