Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
8e0c7ace
Commit
8e0c7ace
authored
Feb 03, 2015
by
Seth Vargo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a -message option to pushes
parent
5d37c584
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
command/push.go
command/push.go
+6
-2
No files found.
command/push.go
View file @
8e0c7ace
...
@@ -33,10 +33,12 @@ type pushUploadFn func(
...
@@ -33,10 +33,12 @@ type pushUploadFn func(
func
(
c
*
PushCommand
)
Run
(
args
[]
string
)
int
{
func
(
c
*
PushCommand
)
Run
(
args
[]
string
)
int
{
var
token
string
var
token
string
var
message
string
f
:=
flag
.
NewFlagSet
(
"push"
,
flag
.
ContinueOnError
)
f
:=
flag
.
NewFlagSet
(
"push"
,
flag
.
ContinueOnError
)
f
.
Usage
=
func
()
{
c
.
Ui
.
Error
(
c
.
Help
())
}
f
.
Usage
=
func
()
{
c
.
Ui
.
Error
(
c
.
Help
())
}
f
.
StringVar
(
&
token
,
"token"
,
""
,
"token"
)
f
.
StringVar
(
&
token
,
"token"
,
""
,
"token"
)
f
.
StringVar
(
&
message
,
"message"
,
""
,
"message"
)
if
err
:=
f
.
Parse
(
args
);
err
!=
nil
{
if
err
:=
f
.
Parse
(
args
);
err
!=
nil
{
return
1
return
1
}
}
...
@@ -222,8 +224,10 @@ Usage: packer push [options] TEMPLATE
...
@@ -222,8 +224,10 @@ Usage: packer push [options] TEMPLATE
Options:
Options:
-token=<token> Access token to use to upload. If blank, the
-message=<detail> A message to identify the purpose or changes in this
ATLAS_TOKEN environmental variable will be used.
Packer template much like a VCS commit message
-token=<token> The access token to use to when uploading
`
`
return
strings
.
TrimSpace
(
helpText
)
return
strings
.
TrimSpace
(
helpText
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment