diff --git a/cmd/mirror_list.go b/cmd/mirror_list.go index 0748d5e3..1a54f433 100644 --- a/cmd/mirror_list.go +++ b/cmd/mirror_list.go @@ -18,7 +18,7 @@ func aptlyMirrorList(cmd *commander.Command, args []string) error { jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool) if jsonFlag { - return aptlyMirrorListJson(cmd, args) + return aptlyMirrorListJSON(cmd, args) } return aptlyMirrorListTxt(cmd, args) @@ -65,7 +65,7 @@ func aptlyMirrorListTxt(cmd *commander.Command, args []string) error { return err } -func aptlyMirrorListJson(cmd *commander.Command, args []string) error { +func aptlyMirrorListJSON(cmd *commander.Command, args []string) error { var err error repos := make([]*deb.RemoteRepo, context.NewCollectionFactory().RemoteRepoCollection().Len()) diff --git a/cmd/publish_list.go b/cmd/publish_list.go index c6e7be7a..f28b5239 100644 --- a/cmd/publish_list.go +++ b/cmd/publish_list.go @@ -18,7 +18,7 @@ func aptlyPublishList(cmd *commander.Command, args []string) error { jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool) if jsonFlag { - return aptlyPublishListJson(cmd, args) + return aptlyPublishListJSON(cmd, args) } return aptlyPublishListTxt(cmd, args) @@ -74,7 +74,7 @@ func aptlyPublishListTxt(cmd *commander.Command, args []string) error { return err } -func aptlyPublishListJson(cmd *commander.Command, args []string) error { +func aptlyPublishListJSON(cmd *commander.Command, args []string) error { var err error repos := make([]*deb.PublishedRepo, 0, context.NewCollectionFactory().PublishedRepoCollection().Len()) diff --git a/cmd/repo_list.go b/cmd/repo_list.go index f03d904a..40dec6d4 100644 --- a/cmd/repo_list.go +++ b/cmd/repo_list.go @@ -18,7 +18,7 @@ func aptlyRepoList(cmd *commander.Command, args []string) error { jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool) if jsonFlag { - return aptlyRepoListJson(cmd, args) + return aptlyRepoListJSON(cmd, args) } return aptlyRepoListTxt(cmd, args) @@ -71,7 +71,7 @@ func aptlyRepoListTxt(cmd *commander.Command, args []string) error { return err } -func aptlyRepoListJson(cmd *commander.Command, args []string) error { +func aptlyRepoListJSON(cmd *commander.Command, args []string) error { var err error repos := make([]*deb.LocalRepo, context.NewCollectionFactory().LocalRepoCollection().Len()) diff --git a/cmd/snapshot_list.go b/cmd/snapshot_list.go index 71da1214..b7836630 100644 --- a/cmd/snapshot_list.go +++ b/cmd/snapshot_list.go @@ -17,7 +17,7 @@ func aptlySnapshotList(cmd *commander.Command, args []string) error { jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool) if jsonFlag { - return aptlySnapshotListJson(cmd, args) + return aptlySnapshotListJSON(cmd, args) } return aptlySnapshotListTxt(cmd, args) @@ -59,7 +59,7 @@ func aptlySnapshotListTxt(cmd *commander.Command, args []string) error { return err } -func aptlySnapshotListJson(cmd *commander.Command, args []string) error { +func aptlySnapshotListJSON(cmd *commander.Command, args []string) error { var err error sortMethodString := cmd.Flag.Lookup("sort").Value.Get().(string)