-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 40c39f5.
- Loading branch information
Showing
14 changed files
with
224 additions
and
112 deletions.
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
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
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,38 @@ | ||
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. | ||
// Licensed under the GNU Affero General Public License (AGPL). | ||
// See License.AGPL.txt in the project root for license information. | ||
|
||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
|
||
csapi "github.com/gitpod-io/gitpod/content-service/api" | ||
"github.com/gitpod-io/gitpod/content-service/pkg/executor" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var dumpInitializer = &cobra.Command{ | ||
Use: "dump-init", | ||
Hidden: true, // this is not official user-facing functionality, but just for debugging | ||
Run: func(cmd *cobra.Command, args []string) { | ||
fc, _ := executor.Prepare(&csapi.WorkspaceInitializer{ | ||
Spec: &csapi.WorkspaceInitializer_Git{ | ||
Git: &csapi.GitInitializer{ | ||
RemoteUri: "https://github.com/gitpod-io/gitpod", | ||
CheckoutLocation: "gitpod", | ||
TargetMode: csapi.CloneTargetMode_REMOTE_BRANCH, | ||
CloneTaget: "main", | ||
Config: &csapi.GitConfig{ | ||
Authentication: csapi.GitAuthMethod_NO_AUTH, | ||
}, | ||
}, | ||
}, | ||
}, nil) | ||
fmt.Println(string(fc)) | ||
}, | ||
} | ||
|
||
func init() { | ||
rootCmd.AddCommand(dumpInitializer) | ||
} |
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
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
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.