Skip to content

Commit

Permalink
Pluralize settings
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Dec 16, 2024
1 parent 1d57469 commit 1138fc0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
file. Only WebAssembly check plugins are supported at this time.
- Add `buf registry plugin commit {add-label,info,list,resolve}` to manage BSR plugin commits.
- Add `buf registry plugin label {archive,info,list,unarchive}` to manage BSR plugin commits.
- Move `buf registry module update` to `buf registry module setting update`. Command
- Move `buf registry module update` to `buf registry module settings update`. Command
`buf registry module update` is now deprecated.

## [v1.47.2] - 2024-11-14
Expand Down
14 changes: 7 additions & 7 deletions private/buf/cmd/buf/buf.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import (
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/module/modulelabel/modulelabelinfo"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/module/modulelabel/modulelabellist"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/module/modulelabel/modulelabelunarchive"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/module/modulesetting/modulesettingupdate"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/module/modulesettings/modulesettingsupdate"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/module/moduleundeprecate"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/organization/organizationcreate"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/organization/organizationdelete"
Expand All @@ -95,7 +95,7 @@ import (
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/plugin/pluginlabel/pluginlabelinfo"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/plugin/pluginlabel/pluginlabellist"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/plugin/pluginlabel/pluginlabelunarchive"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/plugin/pluginsetting/pluginsettingupdate"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/plugin/pluginsettings/pluginsettingsupdate"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/registrycc"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/registrylogin"
"github.com/bufbuild/buf/private/buf/cmd/buf/command/registry/registrylogout"
Expand Down Expand Up @@ -269,17 +269,17 @@ func NewRootCommand(name string) *appcmd.Command {
},
},
{
Use: "setting",
Use: "settings",
Short: "Manage a module's settings",
SubCommands: []*appcmd.Command{
modulesettingupdate.NewCommand("update", builder, ""),
modulesettingsupdate.NewCommand("update", builder, ""),
},
},
modulecreate.NewCommand("create", builder),
moduleinfo.NewCommand("info", builder),
moduledelete.NewCommand("delete", builder),
moduledeprecate.NewCommand("deprecate", builder),
modulesettingupdate.NewCommand("update", builder, deprecatedMessage("buf registry module setting update", "buf registry update")),
modulesettingsupdate.NewCommand("update", builder, deprecatedMessage("buf registry module settings update", "buf registry update")),
moduleundeprecate.NewCommand("undeprecate", builder),
},
},
Expand Down Expand Up @@ -308,10 +308,10 @@ func NewRootCommand(name string) *appcmd.Command {
},
},
{
Use: "setting",
Use: "settings",
Short: "Manage a plugin's settings",
SubCommands: []*appcmd.Command{
pluginsettingupdate.NewCommand("update", builder),
pluginsettingsupdate.NewCommand("update", builder),
},
},
plugincreate.NewCommand("create", builder),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package modulesettingupdate
package modulesettingsupdate

import (
"context"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package pluginsettingupdate
package pluginsettingsupdate

Check failure on line 15 in private/buf/cmd/buf/command/registry/plugin/pluginsettings/pluginsettingsupdate/pluginsettingupdate.go

View workflow job for this annotation

GitHub Actions / lint

Package "pluginsettingsupdate" does not have a pluginsettingsupdate.go

import (
"context"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1138fc0

Please sign in to comment.