consolidated go and scala repos into this repo as well

This commit is contained in:
Fizzizist
2025-01-04 16:03:27 -05:00
parent af2ce045ec
commit 8d4cc2b83c
20 changed files with 535 additions and 0 deletions

19
go/cmd/cons.go Normal file
View File

@@ -0,0 +1,19 @@
package cmd
import (
"github.com/spf13/cobra"
"gitlab.com/fizzizist/go-rosalind/pkg/solutions"
)
var consCmd = &cobra.Command{
Use: "cons",
Short: "Finds a Motif in input DNA",
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
solutions.Cons(args[0])
},
}
func init() {
rootCmd.AddCommand(consCmd)
}

12
go/cmd/root.go Normal file
View File

@@ -0,0 +1,12 @@
package cmd
import "github.com/spf13/cobra"
var rootCmd = &cobra.Command{
Use: "go-rosalind",
Short: "An app for running Rosalind solutions",
}
func Execute() error {
return rootCmd.Execute()
}

19
go/cmd/subs.go Normal file
View File

@@ -0,0 +1,19 @@
package cmd
import (
"github.com/spf13/cobra"
"gitlab.com/fizzizist/go-rosalind/pkg/solutions"
)
var dnaMotifsCmd = &cobra.Command{
Use: "subs",
Short: "Finds a Motif in input DNA",
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
solutions.FindMotifs(args[0])
},
}
func init() {
rootCmd.AddCommand(dnaMotifsCmd)
}