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

Cleanup repo for local dev #81

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
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
16 changes: 0 additions & 16 deletions .devcontainer/Dockerfile

This file was deleted.

27 changes: 0 additions & 27 deletions .devcontainer/devcontainer.json

This file was deleted.

13 changes: 0 additions & 13 deletions .github/FUNDING.yml

This file was deleted.

1 change: 0 additions & 1 deletion app/app.go

This file was deleted.

1 change: 0 additions & 1 deletion client/client.go

This file was deleted.

35 changes: 35 additions & 0 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package cmd

import (
"fmt"
"os"

"github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
Use: "ark",
Short: "ark - empowered by Earth Biosphere to guide your organism engineering",
Long: ` Ark is a database builder and a utility belt to make your bioengineering efforts easier, enjoyful and fluid.

With Ark you can go from an organism-specific database to help you on metabolic engineering, to a full search on the large database of sequenced life.

Choose your adventure, pick your tools and good engineering!`,
Run: func(cmd *cobra.Command, args []string) {
/*
* The list of steps right now:
* - [ ] Check if a config file is present
* - [ ] If not found go to interactive config setup
* - [ ] Run the database setup based on config
*/

fmt.Println("Hi, I'm ark")
},
}

func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "Whoops. There was an error while executing your CLI '%s'", err)
os.Exit(1)
}
}
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package main

import "github.com/TimothyStiles/ark/cmd"

func main() {
// cmd.Execute()
cmd.Execute()
}