Skip to content

Commit 9aa5b4a

Browse files
committed
chore: set output for aws root command
Signed-off-by: brunopadz <bpadz@protonmail.com>
1 parent b394b30 commit 9aa5b4a

File tree

2 files changed

+3
-46
lines changed

2 files changed

+3
-46
lines changed

cmd/aws.go

+3-25
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,16 @@
1-
/*
2-
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
161
package cmd
172

183
import (
19-
"fmt"
20-
214
"github.com/spf13/cobra"
225
)
236

247
// awsCmd represents the aws command
258
var awsCmd = &cobra.Command{
269
Use: "aws",
27-
Short: "A brief description of your command",
28-
Long: `A longer description that spans multiple lines and likely contains examples
29-
and usage of using your command. For example:
30-
31-
Cobra is a CLI library for Go that empowers applications.
32-
This application is a tool to generate the needed files
33-
to quickly create a Cobra application.`,
10+
Short: "Manage AWS AMIs",
11+
Long: "Manages AWS AMIs by account and region",
3412
Run: func(cmd *cobra.Command, args []string) {
35-
fmt.Println("Gonna run on")
13+
cmd.Println(cmd.Long)
3614
},
3715
}
3816

cmd/root.go

-21
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
/*
2-
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
3-
4-
Permission is hereby granted, free of charge, to any person obtaining a copy
5-
of this software and associated documentation files (the "Software"), to deal
6-
in the Software without restriction, including without limitation the rights
7-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
copies of the Software, and to permit persons to whom the Software is
9-
furnished to do so, subject to the following conditions:
10-
11-
The above copyright notice and this permission notice shall be included in
12-
all copies or substantial portions of the Software.
13-
14-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-
THE SOFTWARE.
21-
*/
221
package cmd
232

243
import (

0 commit comments

Comments
 (0)