-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e7eced
commit fc75097
Showing
86 changed files
with
5,050 additions
and
1,803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: lint | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
# Optional: allow read access to pull request. Use with `only-new-issues` option. | ||
pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ^1 | ||
|
||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
# Optional: golangci-lint command line arguments. | ||
#args: | ||
# Optional: show only new issues if it's a pull request. The default value is `false`. | ||
only-new-issues: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
lfq | ||
sawsy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
run: | ||
tests: false | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
|
||
linters: | ||
enable: | ||
- exportloopref | ||
- goimports | ||
- predeclared | ||
- unconvert | ||
- unparam | ||
- whitespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
# Fixes | ||
|
||
# SMALL | ||
- Better error handling in client | ||
- Cleanup client generally | ||
|
||
- [x] Render current account (`sts:GetCallerId`) on the right of tabs view | ||
- Highlight the selected column's cell more visibly (for linking out to resource links?) | ||
- [x] Bundling the search box into the table component (optional to disable), so each table owns the search text | ||
# Features | ||
|
||
# MEDIUM | ||
|
||
- Use termenv for colors | ||
- Link out to useful pages on Enter press (e.g. open browser at s3 location) | ||
- Show LF-Tags for table columns (probably on Schema tab) | ||
|
||
# LARGE | ||
|
||
- Cache results between sessions | ||
- (S) Highlight the selected column's cell more visibly (for linking out to resource links?) | ||
- (M) Custom theming | ||
- (M) Link out to useful pages on Enter press (e.g. open browser at s3 location) | ||
- (M) Lake Fomration: Show LF-Tags for table columns (probably on Schema tab) | ||
- (L) Cache results between sessions? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package config | ||
|
||
import ( | ||
"os" | ||
"path/filepath" | ||
|
||
"gopkg.in/yaml.v3" | ||
) | ||
|
||
type Config struct { | ||
Theme ThemeConfig `yaml:"theme"` | ||
} | ||
|
||
type ThemeConfig struct { | ||
ShowIcons bool `yaml:"showIcons"` | ||
} | ||
|
||
func ReadConfig() (Config, error) { | ||
config := getDefaultConfig() | ||
|
||
homeDir, err := os.UserHomeDir() | ||
if err != nil { | ||
return config, err | ||
} | ||
path := filepath.Join(homeDir, ".sawsy.yml") | ||
|
||
data, err := os.ReadFile(path) | ||
if err != nil { | ||
return config, err | ||
} | ||
|
||
err = yaml.Unmarshal(data, &config) | ||
if err != nil { | ||
return config, err | ||
} | ||
|
||
return config, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package config | ||
|
||
func getDefaultConfig() Config { | ||
return Config{ | ||
Theme: ThemeConfig{ | ||
ShowIcons: true, | ||
}, | ||
} | ||
} |
Oops, something went wrong.