-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1075 from pascalbreuninger/chore/POD-647-devpod-cli
chore(cli): move loftctl commands into devpod cli
- Loading branch information
Showing
3,690 changed files
with
611,084 additions
and
47,807 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package flags | ||
|
||
import ( | ||
"github.com/loft-sh/devpod/cmd/flags" | ||
"github.com/loft-sh/devpod/pkg/loft/client" | ||
flag "github.com/spf13/pflag" | ||
) | ||
|
||
// GlobalFlags is the flags that contains the global flags | ||
type GlobalFlags struct { | ||
*flags.GlobalFlags | ||
|
||
Config string | ||
} | ||
|
||
// SetGlobalFlags applies the global flags | ||
func SetGlobalFlags(flags *flag.FlagSet) *GlobalFlags { | ||
globalFlags := &GlobalFlags{} | ||
|
||
flags.StringVar(&globalFlags.Config, "config", client.DefaultCacheConfig, "The config to use (will be created if it does not exist)") | ||
|
||
return globalFlags | ||
} |
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.