mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
26 lines
668 B
Go
26 lines
668 B
Go
// Copyright (c) 2020 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 (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/gitpod-io/gitpod/ws-daemon/pkg/content"
|
|
)
|
|
|
|
// contentInitializerCmd creates a workspace snapshot
|
|
var contentInitializerCmd = &cobra.Command{
|
|
Use: "content-initializer",
|
|
Short: "fork'ed by ws-daemon to initialize content",
|
|
Args: cobra.ExactArgs(0),
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return content.RunInitializerChild()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
clientCmd.AddCommand(contentInitializerCmd)
|
|
}
|