Skip to content
Open
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
5 changes: 3 additions & 2 deletions cmd/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ var (
functionsDownloadCmd = &cobra.Command{
Use: "download [Function name]",
Short: "Download a Function from Supabase",
Long: "Download the source code for a Function from the linked Supabase project. If no function name is provided, downloads all functions.",
Long: "Download the source code for a Function from the linked Supabase project. If no function name is provided, or if --all is used, downloads all functions.",
Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
if useApi {
useDocker = false
}
slug := ""
if len(args) > 0 {
if len(args) > 0 && !downloadAll {
slug = args[0]
}
return download.Run(cmd.Context(), slug, flags.ProjectRef, useLegacyBundle, useDocker, afero.NewOsFs())
Expand All @@ -63,6 +63,7 @@ var (
useApi bool
useDocker bool
useLegacyBundle bool
downloadAll bool
noVerifyJWT = new(bool)
importMapPath string
prune bool
Expand Down
Loading