Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

Commit 2274fcf

Browse files
authored
Merge pull request #553 from ekinanp/remove-include-meta
Remove include-meta option from winfo
2 parents 781166f + 5003151 commit 2274fcf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cmd/info.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ func infoCommand() *cobra.Command {
1818
RunE: toRunE(infoMain),
1919
}
2020
infoCmd.Flags().StringP("output", "o", "yaml", "Set the output format (json, yaml, or text)")
21-
infoCmd.Flags().BoolP("include-meta", "", false, "Include the meta attribute")
2221
return infoCmd
2322
}
2423

@@ -28,10 +27,6 @@ func infoMain(cmd *cobra.Command, args []string) exitCode {
2827
if err != nil {
2928
panic(err.Error())
3029
}
31-
includeMeta, err := cmd.Flags().GetBool("include-meta")
32-
if err != nil {
33-
panic(err.Error())
34-
}
3530

3631
marshaller, err := cmdutil.NewMarshaller(output)
3732
if err != nil {
@@ -53,7 +48,7 @@ func infoMain(cmd *cobra.Command, args []string) exitCode {
5348
entryMap.Put("Name", entry.Name)
5449
entryMap.Put("CName", entry.CName)
5550
entryMap.Put("Actions", entry.Actions)
56-
entryMap.Put("Attributes", entry.Attributes.ToMap(includeMeta))
51+
entryMap.Put("Attributes", entry.Attributes.ToMap(false))
5752

5853
marshalledEntry, err := marshaller.Marshal(entryMap)
5954
if err != nil {

0 commit comments

Comments
 (0)