Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
remove hostService parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx authored Aug 10, 2023
1 parent 46b8806 commit 5c4dc4d
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion c.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func CRunPsFileContent() string {
return Content("run.ps1", "discord-c", "", "")
}

func CTemplate(botName, hostService string) {
func CTemplate(botName string) {
_, err := looker.LookPath("gcc")

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func RunPsFileContent(platform string) string {
return Content("run.ps1", "discord-cpp", "", "")
}

func CppTemplate(botName, platform, hostService string) {
func CppTemplate(botName, platform string) {
_, err := looker.LookPath("gcc")
_, cerr := looker.LookPath("cmake")

Expand Down
2 changes: 1 addition & 1 deletion crystal.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func ShardFileContent(botName string) string {
return Content("shard.yml", "discord-crystal", botName, "")
}

func CrystalTemplate(botName, hostService string) {
func CrystalTemplate(botName string) {
_, err := looker.LookPath("crystal")
shardsPath, serr := looker.LookPath("shards")

Expand Down
2 changes: 1 addition & 1 deletion csharp.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func BotCSharpProj(platform string) string {
return Content(platform+"-csharp.csproj", platform+"-csharp", "", "")
}

func CsharpTemplate(botName, platform, hostService string) {
func CsharpTemplate(botName, platform string) {
dotnetPath, err := looker.LookPath("dotnet")

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion dart.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func PubspecFileContent(botName, platform string) string {
return Content("pubspec.yaml", platform+"-dart", botName, "")
}

func DartTemplate(botName, platform, hostService string) {
func DartTemplate(botName, platform string) {
dartPath, err := looker.LookPath("dart")

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion deno.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/abdfnx/looker"
)

func DenoTemplate(botName, platform, hostService string) {
func DenoTemplate(botName, platform string) {
deno, err := looker.LookPath("deno")

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func MainGoContent(platform string) string {
return Content("main.go", platform+"-go", "", "")
}

func GoTemplate(botName, platform, hostService string) {
func GoTemplate(botName, platform string) {
goPath, err := looker.LookPath("go")

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion java.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/abdfnx/looker"
)

func JavaTemplate(botName, platform, hostService string) {
func JavaTemplate(botName, platform string) {
createDirs(botName, "java", platform)

gradle, err := looker.LookPath("gradle")
Expand Down
2 changes: 1 addition & 1 deletion kotlin.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func SettingsGradleKts() string {
return Content("settings.gradle.kts", "discord-kotlin", "", "")
}

func KotlinTemplate(botName, platform, hostService string) {
func KotlinTemplate(botName, platform string) {
createDirs(botName, "kotlin", platform)

gradle, err := looker.LookPath("gradle")
Expand Down
2 changes: 1 addition & 1 deletion nim.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func NimbleFileContent(platform string) string {
return Content(platform+"_nim.nimble", platform+"-nim", "", "")
}

func NimTemplate(botName, platform, hostService string) {
func NimTemplate(botName, platform string) {
_, err := looker.LookPath("nim")
nimblePath, nerr := looker.LookPath("nimble")

Expand Down
2 changes: 1 addition & 1 deletion nodejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func MainTSContent(platform string) string {
return Content("main.ts", platform+"-nodejs-ts", "", "")
}

func NodejsTemplate(botName, pm, platform, hostService string, isTs bool) {
func NodejsTemplate(botName, pm, platform string, isTs bool) {
_, nerr := looker.LookPath("npm")
pmPath, err := looker.LookPath(pm)

Expand Down
2 changes: 1 addition & 1 deletion php.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func ComposerFileContent(botName, platform string) string {
return Content("composer.json", platform+"-php", botName, "")
}

func PHPTemplate(botName, platform, hostService string) {
func PHPTemplate(botName, platform string) {
_, err := looker.LookPath("php")
composerPath, serr := looker.LookPath("composer")

Expand Down
2 changes: 1 addition & 1 deletion python.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func PyProjectContent(botName string) string {
return Content("pyproject.toml", "discord-python", botName, "")
}

func PythonTemplate(botName, platform, pm, hostService string) {
func PythonTemplate(botName, platform, pm string) {
pip := "pip3"
pythonPath := "python3"

Expand Down
2 changes: 1 addition & 1 deletion ruby.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func MainRbContent(platform string) string {
return Content("main.rb", platform+"-ruby", "", "")
}

func RubyTemplate(botName, platform, hostService string) {
func RubyTemplate(botName, platform string) {
_, err := looker.LookPath("ruby")
bundlePath, berr := looker.LookPath("bundle")

Expand Down
2 changes: 1 addition & 1 deletion rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func CargoFileContent(botName, platform string) string {
return Content("Cargo.toml", platform+"-rust", botName, "")
}

func RustTemplate(botName, platform, pm, hostService string) {
func RustTemplate(botName, platform, pm string) {
_, err := looker.LookPath("cargo")
pmPath, perr := looker.LookPath(pm)

Expand Down
2 changes: 1 addition & 1 deletion swift.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func PackageSwiftFileContent(botName, platform string) string {
return Content("Package.swift", platform+"-swift", botName, "")
}

func SwiftTemplate(botName, platform, hostService string) {
func SwiftTemplate(botName, platform string) {
swiftPath, err := looker.LookPath("swift")

if err := os.Mkdir(filepath.Join(botName, "Sources"), os.ModePerm); err != nil {
Expand Down

0 comments on commit 5c4dc4d

Please sign in to comment.