mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
update
fix deps cycle update example fix color for X25519 output supported cores message
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"log"
|
||||
|
||||
_ "github.com/Yuzuki616/V2bX/core/imports"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var command = &cobra.Command{
|
||||
|
||||
@@ -2,7 +2,9 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
vCore "github.com/Yuzuki616/V2bX/core"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@@ -26,6 +28,7 @@ func init() {
|
||||
|
||||
func showVersion() {
|
||||
fmt.Printf("%s %s (%s) \n", codename, version, intro)
|
||||
fmt.Printf("Supported cores: %s\n", strings.Join(vCore.RegisteredCore(), ", "))
|
||||
// Warning
|
||||
fmt.Println(Warn("This version need V2board version >= 1.7.0."))
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"crypto/rand"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"golang.org/x/crypto/curve25519"
|
||||
)
|
||||
@@ -45,7 +46,7 @@ func executeX25519() {
|
||||
return
|
||||
}
|
||||
|
||||
output = Err("Private key: ",
|
||||
output = fmt.Sprint("Private key: ",
|
||||
base64.RawURLEncoding.EncodeToString(privateKey),
|
||||
"\nPublic key: ",
|
||||
base64.RawURLEncoding.EncodeToString(publicKey))
|
||||
|
||||
Reference in New Issue
Block a user