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
cd0d3269
Commit
cd0d3269
authored
Feb 04, 2015
by
Seth Vargo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow -create to be passed still for BC
parent
bfc4f4ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
command/push.go
command/push.go
+8
-0
No files found.
command/push.go
View file @
cd0d3269
...
...
@@ -34,12 +34,14 @@ type pushUploadFn func(
func
(
c
*
PushCommand
)
Run
(
args
[]
string
)
int
{
var
token
string
var
message
string
var
create
bool
f
:=
flag
.
NewFlagSet
(
"push"
,
flag
.
ContinueOnError
)
f
.
Usage
=
func
()
{
c
.
Ui
.
Error
(
c
.
Help
())
}
f
.
StringVar
(
&
token
,
"token"
,
""
,
"token"
)
f
.
StringVar
(
&
message
,
"m"
,
""
,
"message"
)
f
.
StringVar
(
&
message
,
"message"
,
""
,
"message"
)
f
.
BoolVar
(
&
create
,
"create"
,
false
,
"create (deprecated)"
)
if
err
:=
f
.
Parse
(
args
);
err
!=
nil
{
return
1
}
...
...
@@ -50,6 +52,12 @@ func (c *PushCommand) Run(args []string) int {
return
1
}
// Print deprecations
if
create
{
c
.
Ui
.
Error
(
fmt
.
Sprintf
(
"The '-create' option is now the default and is
\n
"
+
"longer used. It will be removed in the next version."
))
}
// Read the template
tpl
,
err
:=
packer
.
ParseTemplateFile
(
args
[
0
],
nil
)
if
err
!=
nil
{
...
...
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