From 192f435cfcca371be3f13c5b990604acca794256 Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Sun, 25 Oct 2020 19:34:28 -0700 Subject: [PATCH] make default appfile as vela.yaml --- design/appfile-design.md | 2 +- documentation/cli/vela_up.md | 2 +- examples/testapp/{vela.yml => vela.yaml} | 0 pkg/appfile/appfile.go | 2 +- pkg/commands/up.go | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename examples/testapp/{vela.yml => vela.yaml} (100%) diff --git a/design/appfile-design.md b/design/appfile-design.md index c01bdccd9..4925a80b2 100644 --- a/design/appfile-design.md +++ b/design/appfile-design.md @@ -278,7 +278,7 @@ Here is the takeout: ### `vela up` -The vela-cli will have an `up` command to provide seamless workflow experience. Provide an `vela.yml` Appfile in the same directory that you will run `vela up` and it is good to go. There is an example under `examples/testapp/` . +The vela-cli will have an `up` command to provide seamless workflow experience. Provide an `vela.yaml` Appfile in the same directory that you will run `vela up` and it is good to go. There is an example under `examples/testapp/` . ## Examples diff --git a/documentation/cli/vela_up.md b/documentation/cli/vela_up.md index 128f9300d..8a1be4efb 100644 --- a/documentation/cli/vela_up.md +++ b/documentation/cli/vela_up.md @@ -4,7 +4,7 @@ Apply an appfile ### Synopsis -Apply an appfile, by default vela.yml +Apply an appfile, by default vela.yaml ``` vela up diff --git a/examples/testapp/vela.yml b/examples/testapp/vela.yaml similarity index 100% rename from examples/testapp/vela.yml rename to examples/testapp/vela.yaml diff --git a/pkg/appfile/appfile.go b/pkg/appfile/appfile.go index 181c07cd2..c15791240 100644 --- a/pkg/appfile/appfile.go +++ b/pkg/appfile/appfile.go @@ -17,7 +17,7 @@ var ( ErrImageNotDefined = errors.New("image not defined") ) -const DefaultAppfilePath = "./vela.yml" +const DefaultAppfilePath = "./vela.yaml" type AppFile struct { Name string `json:"name"` diff --git a/pkg/commands/up.go b/pkg/commands/up.go index 278e58d81..fcbc9c1fe 100644 --- a/pkg/commands/up.go +++ b/pkg/commands/up.go @@ -34,7 +34,7 @@ func NewUpCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command { Use: "up", DisableFlagsInUseLine: true, Short: "Apply an appfile", - Long: "Apply an appfile, by default vela.yml", + Long: "Apply an appfile, by default vela.yaml", Annotations: map[string]string{ types.TagCommandType: types.TypeStart, },