vsc

package module
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 17 Imported by: 0

README

vsc

go.dev reference License

$ go install github.com/btwiuse/vsc/cmd/vsc@latest
$ vsc -h
Usage of serveWebArgs:
  -connection-token string
        A secret that must be included with all requests.
  -connection-token-file string
        A file containing a secret that must be included with all requests.
  -extensions-dir string
        Set the root path for extensions.
  -host string
        Host to listen on, defaults to '127.0.0.1' (default "127.0.0.1")
  -log string
        Log level: {off,critical,error,warn,info,debug,trace}, defaults to 'off'. (default "off")
  -port int
        Port to listen on, defaults to 0. If 0 is passed a random free port is picked.
  -quality string
        Quality: {insider,stable,exploration}, defaults to 'insider' (default "insider")
  -relay value
        Relay URL, can be specified multiple times.
  -server-base-path string
        Specifies the path under which the web UI and the code server is provided.
  -server-data-dir string
        Specifies the directory that server data is kept in.
  -socket-path string
        The path to a socket file for the server to listen to.
  -user-data-dir string
        Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code.
  -verbose
        Verbose logging.
  -version
        Show version.
  -without-connection-token
        Run without a connection token. Only use this if the connection is secured by other means.

Documentation

Index

Constants

View Source
const VSCODE_UPDATE_URL = "https://update.code.visualstudio.com"

Variables

View Source
var DefaultRelay = tags.SpaceSeparatedStrings{
	"https://pub.webtransport.fun",
}

Functions

func Run

func Run(args []string) error

Types

type ServeWebArgs

type ServeWebArgs struct {
	Relay                    *tags.SpaceSeparatedStrings `json:"relay"`
	Log                      *string                     `json:"log"`
	Verbose                  *bool                       `json:"verbose"`
	Version                  *bool                       `json:"version"`
	Quality                  *string                     `json:"quality"`
	Host                     *string                     `json:"host"`
	SocketPath               *string                     `json:"socketPath"`
	Port                     *int                        `json:"port"`
	ConnectionToken          *string                     `json:"connectionToken"`
	ConnectionTokenFile      *string                     `json:"connectionTokenFile"`
	WithoutConnectionToken   *bool                       `json:"withoutConnectionToken"`
	AcceptServerLicenseTerms *bool                       `json:"acceptServerLicenseTerms"` // ignored
	ServerBasePath           *string                     `json:"serverBasePath"`
	ServerDataDir            *string                     `json:"serverDataDir"`
	UserDataDir              *string                     `json:"userDataDir"`
	ExtensionsDir            *string                     `json:"extensionsDir"`
}

func Parse

func Parse(args []string) (*ServeWebArgs, error)

type VersionInfo

type VersionInfo struct {
	Name           string `json:"name"`
	Version        string `json:"version"`
	ProductVersion string `json:"productVersion"`
	Timestamp      int64  `json:"timestamp"`
}

Directories

Path Synopsis
cmd
vsc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL