Skip to content

Commit

Permalink
Formatting only.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgecse committed Aug 7, 2023
1 parent 87d8703 commit d72fc03
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
31 changes: 15 additions & 16 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,22 +287,21 @@ func (c *Config) SetJiraToken(token *oauth1.Token) {

// configFile is a serializable representation of the current Viper configuration.
type configFile struct {
LogLevel string `json:"log-level,omitempty" mapstructure:"log-level"`
GithubToken string `json:"github-token,omitempty" mapstructure:"github-token"`
JiraUser string `json:"jira-user,omitempty" mapstructure:"jira-user"`
JiraPass string `json:"jira-pass,omitempty" mapstructure:"jira-pass"`
JiraToken string `json:"jira-token,omitempty" mapstructure:"jira-token"`
JiraSecret string `json:"jira-secret,omitempty" mapstructure:"jira-secret"`
JiraKey string `json:"jira-private-key-path,omitempty" mapstructure:"jira-private-key-path"`
JiraCKey string `json:"jira-consumer-key,omitempty" mapstructure:"jira-consumer-key"`
RepoName string `json:"repo-name,omitempty" mapstructure:"repo-name"`
JiraURI string `json:"jira-uri,omitempty" mapstructure:"jira-uri"`
JiraProject string `json:"jira-project,omitempty" mapstructure:"jira-project"`
Since string `json:"since,omitempty" mapstructure:"since"`
Confirm bool `json:"confirm,omitempty" mapstructure:"confirm"`
Timeout time.Duration `json:"timeout,omitempty" mapstructure:"timeout"`

JiraComponents string `json:"jira-components,omitempty" mapstructure:"jira-components"`
LogLevel string `json:"log-level,omitempty" mapstructure:"log-level"`
GithubToken string `json:"github-token,omitempty" mapstructure:"github-token"`
JiraUser string `json:"jira-user,omitempty" mapstructure:"jira-user"`
JiraPass string `json:"jira-pass,omitempty" mapstructure:"jira-pass"`
JiraToken string `json:"jira-token,omitempty" mapstructure:"jira-token"`
JiraSecret string `json:"jira-secret,omitempty" mapstructure:"jira-secret"`
JiraKey string `json:"jira-private-key-path,omitempty" mapstructure:"jira-private-key-path"`
JiraCKey string `json:"jira-consumer-key,omitempty" mapstructure:"jira-consumer-key"`
RepoName string `json:"repo-name,omitempty" mapstructure:"repo-name"`
JiraURI string `json:"jira-uri,omitempty" mapstructure:"jira-uri"`
JiraProject string `json:"jira-project,omitempty" mapstructure:"jira-project"`
JiraComponents string `json:"jira-components,omitempty" mapstructure:"jira-components"`
Since string `json:"since,omitempty" mapstructure:"since"`
Confirm bool `json:"confirm,omitempty" mapstructure:"confirm"`
Timeout time.Duration `json:"timeout,omitempty" mapstructure:"timeout"`
}

// SaveConfig updates the `since` parameter to now, then saves the configuration file.
Expand Down
19 changes: 9 additions & 10 deletions internal/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,20 @@ import (
)

type Options struct {
LogLevel string
ConfigFile string
GitHubToken string
JiraUser string
JiraPassword string
RepoName string
JiraURI string
JiraProject string
LogLevel string
ConfigFile string
GitHubToken string
JiraUser string
JiraPassword string
RepoName string
JiraURI string
JiraProject string
JiraComponents string
// TODO(options): Should this be a time type?
Since string
Confirm bool
Timeout time.Duration
Period time.Duration

JiraComponents string
}

const (
Expand Down

0 comments on commit d72fc03

Please sign in to comment.