20 lines
358 B
Go
20 lines
358 B
Go
![]() |
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)
|
||
|
}
|