gitpod/components/ws-daemon/cmd/content-initializer.go
2020-11-11 12:00:31 +01:00

25 lines
668 B
Go

// Copyright (c) 2020 TypeFox 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/gitpod-io/gitpod/ws-daemon/pkg/content"
"github.com/spf13/cobra"
)
// 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)
}