diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 255a1a6..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/ubuntu/.devcontainer/base.Dockerfile - -# [Choice] Ubuntu version: bionic, focal -ARG VARIANT="focal" -FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} - - -# [Optional] Uncomment this section to install additional OS packages. -RUN export DEBIAN_FRONTEND=noninteractive \ - && sudo apt-get update \ - && sudo apt-get -y install golang - -RUN go get -v golang.org/x/tools/gopls -RUN go get -u github.com/lukehoban/go-outline -RUN go get -u github.com/uudashr/gopkgs/cmd/gopkgs -RUN go get github.com/go-delve/delve/cmd/dlv diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index d46e783..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,27 +0,0 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: -// https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/ubuntu -{ - "name": "ark - Ubuntu", - "build": { - "dockerfile": "Dockerfile", - // Update 'VARIANT' to pick an Ubuntu version: focal, bionic - "args": { "VARIANT": "focal" } - }, - - // Set *default* container specific settings.json values on container create. - "settings": { - "terminal.integrated.shell.linux": "/bin/bash" - }, - - // Add the IDs of extensions you want installed when the container is created. - "extensions": ["golang.go", "ms-vsliveshare.vsliveshare-pack","redhat.vscode-yaml","yzhang.markdown-all-in-one","premparihar.gotestexplorer","github.vscode-pull-request-github","streetsidesoftware.code-spell-checker","eamodio.gitlens"] - - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "uname -a", - - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. - // "remoteUser": "vscode" -} diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 48aeb54..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,13 +0,0 @@ -# These are supported funding model platforms - -github: [TimothyStiles]# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/app/app.go b/app/app.go deleted file mode 100644 index 4879f7a..0000000 --- a/app/app.go +++ /dev/null @@ -1 +0,0 @@ -package app diff --git a/client/client.go b/client/client.go deleted file mode 100644 index da13c8e..0000000 --- a/client/client.go +++ /dev/null @@ -1 +0,0 @@ -package client diff --git a/cmd/cmd.go b/cmd/cmd.go new file mode 100644 index 0000000..c46ddd8 --- /dev/null +++ b/cmd/cmd.go @@ -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) + } +} diff --git a/main.go b/main.go index 1e04c5d..3d490f2 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,7 @@ package main +import "github.com/TimothyStiles/ark/cmd" + func main() { - // cmd.Execute() + cmd.Execute() }