Skeleton complete

pull/2/head
Jean-Marc Meessen 5 years ago
parent 2c0ab69af7
commit 9aeaa70b60

BIN
FLEcli

Binary file not shown.

@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)
Copyright © 2020 NAME HERE <EMAIL ADDRESS> Copyright © 2020 Jean-Marc Meessen, ON4KJM <on4kjm@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

@ -1,5 +0,0 @@
package hello
func Hello() string {
return "Hello, world."
}

@ -1,7 +0,0 @@
package hello
import "fmt"
func main() {
fmt.Println("hello world")
}

@ -1,10 +0,0 @@
package hello
import "testing"
func TestHello(t *testing.T) {
want := "Hello, world."
if got := Hello(); got != want {
t.Errorf("Hello() = %q, want %q", got, want)
}
}

@ -1,5 +1,5 @@
/* /*
Copyright © 2020 NAME HERE <EMAIL ADDRESS> Copyright © 2020 Jean-Marc Meessen, ON4KJM <on4kjm@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -24,13 +24,13 @@ import (
// loadCmd represents the load command // loadCmd represents the load command
var loadCmd = &cobra.Command{ var loadCmd = &cobra.Command{
Use: "load", Use: "load",
Short: "A brief description of your command", Short: "Loads and validates a FLE type logfile",
Long: `A longer description that spans multiple lines and likely contains examples // Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example: // and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications. // Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files // This application is a tool to generate the needed files
to quickly create a Cobra application.`, // to quickly create a Cobra application.`,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
fmt.Println("load called") fmt.Println("load called")
}, },

@ -1,5 +1,5 @@
/* /*
Copyright © 2020 NAME HERE <EMAIL ADDRESS> Copyright © 2020 Jean-Marc Meessen, ON4KJM <on4kjm@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
@ -23,9 +23,10 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/spf13/cobra"
"os" "os"
"github.com/spf13/cobra"
homedir "github.com/mitchellh/go-homedir" homedir "github.com/mitchellh/go-homedir"
"github.com/spf13/viper" "github.com/spf13/viper"
) )
@ -35,13 +36,13 @@ var cfgFile string
// rootCmd represents the base command when called without any subcommands // rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{ var rootCmd = &cobra.Command{
Use: "FLEcli", Use: "FLEcli",
Short: "A brief description of your application", Short: "A Command Line \"Fast Log Entry\" (FLE) processor",
Long: `A longer description that spans multiple lines and likely contains // Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example: // examples and usage of using your application. For example:
Cobra is a CLI library for Go that empowers applications. // Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files // This application is a tool to generate the needed files
to quickly create a Cobra application.`, // to quickly create a Cobra application.`,
// Uncomment the following line if your bare application // Uncomment the following line if your bare application
// has an action associated with it: // has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { }, // Run: func(cmd *cobra.Command, args []string) { },

@ -8,10 +8,11 @@ require (
github.com/pelletier/go-toml v1.8.0 // indirect github.com/pelletier/go-toml v1.8.0 // indirect
github.com/spf13/afero v1.2.2 // indirect github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cast v1.3.1 // indirect github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v1.0.0 // indirect github.com/spf13/cobra v1.0.0
github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.7.0 // indirect github.com/spf13/viper v1.7.0
golang.org/x/sys v0.0.0-20200523222454-059865788121 // indirect golang.org/x/sys v0.0.0-20200523222454-059865788121 // indirect
gopkg.in/ini.v1 v1.57.0 // indirect gopkg.in/ini.v1 v1.57.0 // indirect
github.com/mitchellh/go-homedir v1.1.0
) )

@ -1,5 +1,5 @@
/* /*
Copyright © 2020 NAME HERE <EMAIL ADDRESS> Copyright © 2020 Jean-Marc Meessen, ON4KJM <on4kjm@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

Loading…
Cancel
Save