Implemented service edit command

This commit is contained in:
Philipp Wolfer 2023-12-08 08:38:17 +01:00
parent c6c0723e27
commit 58a47a43e7
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
15 changed files with 213 additions and 57 deletions

View file

@ -36,8 +36,8 @@ type DeezerApiBackend struct {
func (b *DeezerApiBackend) Name() string { return "deezer" }
func (b *DeezerApiBackend) Options() *[]models.BackendOption {
return &[]models.BackendOption{{
func (b *DeezerApiBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "client-id",
Label: "Client ID",
Type: models.String,

View file

@ -25,7 +25,7 @@ type DumpBackend struct{}
func (b *DumpBackend) Name() string { return "dump" }
func (b *DumpBackend) Options() *[]models.BackendOption { return nil }
func (b *DumpBackend) Options() []models.BackendOption { return nil }
func (b *DumpBackend) FromConfig(config *config.ServiceConfig) models.Backend {
return b

View file

@ -33,8 +33,8 @@ type FunkwhaleApiBackend struct {
func (b *FunkwhaleApiBackend) Name() string { return "funkwhale" }
func (b *FunkwhaleApiBackend) Options() *[]models.BackendOption {
return &[]models.BackendOption{{
func (b *FunkwhaleApiBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "server-url",
Label: "Server URL",
Type: models.String,

View file

@ -36,8 +36,8 @@ type JSPFBackend struct {
func (b *JSPFBackend) Name() string { return "jspf" }
func (b *JSPFBackend) Options() *[]models.BackendOption {
return &[]models.BackendOption{{
func (b *JSPFBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "file-path",
Label: "File path",
Type: models.String,

View file

@ -43,8 +43,8 @@ type LastfmApiBackend struct {
func (b *LastfmApiBackend) Name() string { return "lastfm" }
func (b *LastfmApiBackend) Options() *[]models.BackendOption {
return &[]models.BackendOption{{
func (b *LastfmApiBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "username",
Label: "User name",
Type: models.String,

View file

@ -34,8 +34,8 @@ type ListenBrainzApiBackend struct {
func (b *ListenBrainzApiBackend) Name() string { return "listenbrainz" }
func (b *ListenBrainzApiBackend) Options() *[]models.BackendOption {
return &[]models.BackendOption{{
func (b *ListenBrainzApiBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "username",
Label: "User name",
Type: models.String,

View file

@ -33,8 +33,8 @@ type MalojaApiBackend struct {
func (b *MalojaApiBackend) Name() string { return "maloja" }
func (b *MalojaApiBackend) Options() *[]models.BackendOption {
return &[]models.BackendOption{{
func (b *MalojaApiBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "server-url",
Label: "Server URL",
Type: models.String,

View file

@ -36,8 +36,8 @@ type ScrobblerLogBackend struct {
func (b *ScrobblerLogBackend) Name() string { return "scrobbler-log" }
func (b *ScrobblerLogBackend) Options() *[]models.BackendOption {
return &[]models.BackendOption{{
func (b *ScrobblerLogBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "file-path",
Label: "File path",
Type: models.String,

View file

@ -39,8 +39,8 @@ type SpotifyApiBackend struct {
func (b *SpotifyApiBackend) Name() string { return "spotify" }
func (b *SpotifyApiBackend) Options() *[]models.BackendOption {
return &[]models.BackendOption{{
func (b *SpotifyApiBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "client-id",
Label: "Client ID",
Type: models.String,

View file

@ -34,8 +34,8 @@ type SubsonicApiBackend struct {
func (b *SubsonicApiBackend) Name() string { return "subsonic" }
func (b *SubsonicApiBackend) Options() *[]models.BackendOption {
return &[]models.BackendOption{{
func (b *SubsonicApiBackend) Options() []models.BackendOption {
return []models.BackendOption{{
Name: "server-url",
Label: "Server URL",
Type: models.String,