-
Sigmund, Dominik authoredSigmund, Dominik authored
add.go 528 B
package commands
import (
"fmt"
"os"
"path/filepath"
"time"
"datasmith/config"
"datasmith/templates"
"datasmith/utils"
)
func Add(tablename string) {
utils.PromptIfEmpty(&tablename, "Enter the name of the table: ")
addTable(tablename)
}
func addTable(name string) {
slug := utils.Slugify(name)
// TODO: Do Stuff
fmt.Printf("Added new table '%s' to the project\n", name)
}
// Help returns the help information for the add command
func AddHelp() string {
return "add [tablename]: Add a table to the project."
}