SetDotfilesConfiguration
client.Users.Dotfiles.Set(ctx, body) (*UserDotfileSetResponse, error)
POST/gitpod.v1.UserService/SetDotfilesConfiguration
Sets the dotfiles configuration for a user.
Use this method to:
- Configure user dotfiles
- Update dotfiles settings
Examples
-
Set dotfiles configuration:
Sets the dotfiles configuration for the current user.
{ "repository": "https://github.com/gitpod-io/dotfiles", } -
Remove dotfiles:
Removes the dotfiles for the current user.
{}
SetDotfilesConfiguration
package main
import (
"context"
"fmt"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/option"
)
func main() {
client := gitpod.NewClient(
option.WithBearerToken("My Bearer Token"),
)
response, err := client.Users.Dotfiles.Set(context.TODO(), gitpod.UserDotfileSetParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{}Returns Examples
{}