-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking-change(redis): change Redis Architecture (#205)
* feat(cmd): add version command * feat(redis): change redis architecture and fix unimplemented parts * fix(cmd): restore expire option * chore(rdb): remove batchSize in RDBDriver * feat(redis): change redis architecture * feat(redis): change Redis Architecture * feat(redis): update redis architecture * fix(redis): Get by CPEURI * chore: expand in argument * chore(integration): set filename to cveid when mode is cves * fix(redis): fix order of field, value * style: fix message * chore(integration): check the communication with the server * chore(integration): update test data * style: do file checks in close proximity * chore(integration): move to integration/.gitignore * chore: fmt.Errorf to xerrors.Errors Co-authored-by: Kota Kanbe <kotakanbe@gmail.com>
- Loading branch information
Showing
21 changed files
with
6,807 additions
and
47,900 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
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 |
---|---|---|
|
@@ -6,5 +6,4 @@ go-cve-dictionary | |
*.sqlite3-shm | ||
*.sqlite3-wal | ||
tags | ||
/dist/ | ||
integration/diff | ||
/dist/ |
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
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,21 @@ | ||
package commands | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/spf13/cobra" | ||
"github.com/vulsio/go-cve-dictionary/config" | ||
) | ||
|
||
func init() { | ||
RootCmd.AddCommand(versionCmd) | ||
} | ||
|
||
var versionCmd = &cobra.Command{ | ||
Use: "version", | ||
Short: "Show version", | ||
Long: `Show version`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Printf("go-cve-dictionary %s %s\n", config.Version, config.Revision) | ||
}, | ||
} |
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
Oops, something went wrong.