diff --git a/commands.go b/commands/commands.go similarity index 98% rename from commands.go rename to commands/commands.go index 581aafb..589268b 100644 --- a/commands.go +++ b/commands/commands.go @@ -1,4 +1,4 @@ -package main +package commands import ( "maps" diff --git a/commands_test.go b/commands/commands_test.go similarity index 99% rename from commands_test.go rename to commands/commands_test.go index c37acea..6167b3c 100644 --- a/commands_test.go +++ b/commands/commands_test.go @@ -1,4 +1,4 @@ -package main +package commands import ( "bytes" diff --git a/v.go b/v.go index 38c7904..2e63a5d 100644 --- a/v.go +++ b/v.go @@ -3,6 +3,7 @@ package main import ( "os" cli "v/cli" + commands "v/commands" python "v/python" state "v/state" ) @@ -20,7 +21,7 @@ func main() { root := cli.Namespace{Label: ""} root.AddCommand( - "init", Initialize, "v init", "Initializes the v state.", + "init", commands.Initialize, "v init", "Initializes the v state.", ) cli := cli.CLI{