diff --git a/.vscode/settings.json b/.vscode/settings.json index a2f29c8..b24756e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,10 +15,7 @@ "titleBar.activeForeground": "#e7e7e7", "titleBar.inactiveBackground": "#e63a1199", "titleBar.inactiveForeground": "#e7e7e799", - "editorGroup.border": "#f05d3a", - "panel.border": "#f05d3a", "sash.hoverBorder": "#f05d3a", - "sideBar.border": "#f05d3a", "statusBarItem.remoteBackground": "#e63a11", "statusBarItem.remoteForeground": "#e7e7e7" } diff --git a/cmd/lump.go b/cmd/lump.go index a3d6d79..af91d39 100644 --- a/cmd/lump.go +++ b/cmd/lump.go @@ -26,6 +26,7 @@ func InitServer() *cobra.Command { 3. Php7.4 4. Php7.3 5. Php7.2 + 5. Php8.0 `, Args: cobra.MinimumNArgs(1), diff --git a/lump/lump.go b/lump/lump.go index b3ac3f6..dc7bb7e 100644 --- a/lump/lump.go +++ b/lump/lump.go @@ -53,4 +53,13 @@ func InstallerInit(cmd *cobra.Command, args []string) { } + if utils.SearchString(args, "php8.0") == true { + + Installphp() + Php80() + + } + + utils.Exec("sudo", "apt", "autoremove") + } diff --git a/lump/php.go b/lump/php.go index cb5f0be..91ddc1c 100644 --- a/lump/php.go +++ b/lump/php.go @@ -10,7 +10,6 @@ func Installphp() { utils.Exec("sudo", "apt-get", "install", "software-properties-common") utils.Exec("sudo", "add-apt-repository", "ppa:ondrej/php") utils.Exec("sudo", "apt-get", "update") - utils.Exec("sudo", "apt-get", "-y", "php7.4") } @@ -44,6 +43,16 @@ func Php72() { } +func Php80() { + + utils.Exec("sudo", "apt-get", "-y", "php8.0") + + fmt.Println("Installing php 8.0 ...") + + Addons("8.0") + +} + func Addons(version string) { extensions := []string{