main code (#8)
Reviewed-on: #8 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -1,9 +1,22 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
import "os"
|
||||||
|
|
||||||
const VERSION = "0.4.100"
|
const VERSION = "0.4.101"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("clean_file")
|
fmt.Println("clean_file")
|
||||||
|
args := os.Args
|
||||||
|
|
||||||
|
if len(args) < 2 {
|
||||||
|
fmt.Println("Invalid arguments provided")
|
||||||
|
os.Exit(-1)
|
||||||
|
}
|
||||||
|
|
||||||
|
filepath := args[1]
|
||||||
|
|
||||||
|
fmt.Println("File path:", filepath)
|
||||||
|
// TODO: Create parser package and Parser struct to do the remaining
|
||||||
|
// work
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user