-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cli): move loftctl commands into devpod cli
- Loading branch information
1 parent
05dd69c
commit 5361324
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.