Ubuntu Pastebin

Paste from elopio at Mon, 8 Feb 2016 19:43:51 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/cmd/snap/cmd_assert.go b/cmd/snap/cmd_assert.go
index 3e15449..10d15f0 100644
--- a/cmd/snap/cmd_assert.go
+++ b/cmd/snap/cmd_assert.go
@@ -25,12 +25,12 @@ import (
 	"github.com/ubuntu-core/snappy/i18n"
 )
 
-type assertOptions struct {
+type AssertOptions struct {
 	AssertionFile string `positional-arg-name:"assertion-file" description:"assertion file"`
 }
 
 type cmdAssert struct {
-	assertOptions `positional-args:"true" required:"true"`
+	AssertOptions `positional-args:"true" required:"true"`
 }
 
 var shortAssertHelp = i18n.G("Adds an assertion to the system")
@@ -52,7 +52,7 @@ func init() {
 }
 
 func (x *cmdAssert) Execute(args []string) error {
-	assertFile := x.assertOptions.AssertionFile
+	assertFile := x.AssertOptions.AssertionFile
 
 	assertData, err := ioutil.ReadFile(assertFile)
 	if err != nil {
Download as text