cmd

package
v0.0.0-...-ae432ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package cmd is for the CLI Commands

Index

Constants

View Source
const FeatureFileName = "features."

FeatureFileName declares the filename for the unseparated FeatureFile without a file extension but with a dot

Variables

View Source
var ALLOWEDEXTENSIONS = []string{".txt", ".json"}

ALLOWEDEXTENSIONS defines the AllowedExtensions for the files

Functions

func Contains

func Contains(haystack []string, needle string) bool

Contains checks if the given needle is in the haystack

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetFiles

func GetFiles(args []string) ([]string, error)

GetFiles looks for: - all the files, if a directory is given - all the files, if multiple files are given - the file, if a single file is given returns an error if there is no valid file returns all the correct given files

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL