Documentation ¶
Overview ¶
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( AppName = "Mole IDS" Version = "v0.0.0" BuildHash = "devel" BuildDate = "1970-01-01T00:00:00Z" )
var RootCmd = &cobra.Command{ Use: "", Short: "MOLE IDS", PreRun: func(cmd *cobra.Command, args []string) { if val, err := cmd.Flags().GetBool("version"); err == nil && val { fmt.Printf("%s %s\nBuilt datetime: %s\nBuild Hash: %s\n", AppName, Version, BuildDate, BuildHash) os.Exit(0) } else if err != nil { fmt.Println(err.Error()) os.Exit(1) } err := logger.New() if err != nil { fmt.Printf("Err: %s\n", err.Error()) } }, }
RootCmd root command, this is the main entry point command
Functions ¶
Types ¶
This section is empty.