Skip to content

Commit

Permalink
remove author field
Browse files Browse the repository at this point in the history
  • Loading branch information
aooohan committed Mar 25, 2024
1 parent ac74f4f commit 2869781
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion cmd/commands/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func infoCmd(ctx *cli.Context) error {

pterm.Println("Plugin info:")
pterm.Println("Name ", "->", pterm.LightBlue(source.Name))
pterm.Println("Author ", "->", pterm.LightBlue(source.Author))
pterm.Println("Version ", "->", pterm.LightBlue(source.Version))
pterm.Println("Desc ", "->", pterm.LightBlue(source.Description))
pterm.Println("UpdateUrl", "->", pterm.LightBlue(source.UpdateUrl))
Expand Down
1 change: 0 additions & 1 deletion internal/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ type EnvKeysHookResultItem struct {

type LuaPluginInfo struct {
Name string `luai:"name"`
Author string `luai:"author"`
Version string `luai:"version"`
Description string `luai:"description"`
UpdateUrl string `luai:"updateUrl"` // TODO Will be deprecated in future versions
Expand Down
1 change: 0 additions & 1 deletion internal/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ func (m *Manager) Add(pluginName, url, alias string) error {
}
pterm.Println("Plugin info:")
pterm.Println("Name ", "->", pterm.LightBlue(source.Name))
pterm.Println("Author ", "->", pterm.LightBlue(source.Author))
pterm.Println("Version", "->", pterm.LightBlue(source.Version))
pterm.Println("Desc ", "->", pterm.LightBlue(source.Description))
pterm.Println("Path ", "->", pterm.LightBlue(destPath))
Expand Down
4 changes: 0 additions & 4 deletions internal/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ func TestNewLuaPluginWithMain(t *testing.T) {
t.Errorf("expected description 'xxx', got '%s'", plugin.Description)
}

if plugin.Author != "Lihan" {
t.Errorf("expected author 'Lihan', got '%s'", plugin.Author)
}

if plugin.UpdateUrl != "{URL}/sdk.lua" {
t.Errorf("expected update url '{URL}/sdk.lua', got '%s'", plugin.UpdateUrl)
}
Expand Down

0 comments on commit 2869781

Please sign in to comment.