mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 19:10:35 +07:00
feat: delete deprecated input
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"log"
|
"log"
|
||||||
"nto_cli/utils"
|
"nto_cli/utils"
|
||||||
"os"
|
"os"
|
||||||
@@ -9,13 +8,6 @@ import (
|
|||||||
"github.com/rivo/tview"
|
"github.com/rivo/tview"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Input() (string, string) {
|
|
||||||
fmt.Print("struct name, path to file (including struct): ")
|
|
||||||
var structName, path string
|
|
||||||
fmt.Scan(&structName, &path)
|
|
||||||
return structName, path
|
|
||||||
}
|
|
||||||
|
|
||||||
func SelectionInput() ([]string, string) {
|
func SelectionInput() ([]string, string) {
|
||||||
if len(os.Args) == 1 {
|
if len(os.Args) == 1 {
|
||||||
log.Fatalf("Please provide path to models.go")
|
log.Fatalf("Please provide path to models.go")
|
||||||
|
|||||||
Reference in New Issue
Block a user