Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1eaeede

Browse files
committed
add open_in parameter
1 parent6ca152d commit1eaeede

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎provider/app.go‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package provider
22

33
import (
44
"context"
5+
"fmt"
56
"net/url"
67
"regexp"
78

@@ -83,6 +84,18 @@ func appResource() *schema.Resource {
8384
Optional:true,
8485
ForceNew:true,
8586
},
87+
"open_in": {
88+
Type:schema.TypeString,
89+
Description:"The application to open the app in.",
90+
Optional:true,
91+
ForceNew:true,
92+
ValidateFunc:func(iinterface{},sstring) ([]string, []error) {
93+
ifs=="tab"||s=="window"||s=="slim-window" {
94+
returnnil,nil
95+
}
96+
returnnil, []error{fmt.Errorf("invalid open_in value %q, must be one of\"tab\",\"window\" or\"slim-window\"",s)}
97+
},
98+
},
8699
"icon": {
87100
Type:schema.TypeString,
88101
Description:"A URL to an icon that will display in the dashboard. View built-in "+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp