cmd

package
v0.0.0-...-76696cf Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Cobra CLI command to validate batches of ABCD Bank Credit Card numbers

Implementation of the HackerRank code challenge.

Validates lines of data provided either by unix pipe or file path.

Usage:

validate [flags]

Flags:

-f, --file string   path to a file containing the data to validate
-h, --help          help for validate
-v, --verbose       output full validation result with input text and the error messages

Index

Constants

View Source
const MAXLINES = 99

Variables

This section is empty.

Functions

func Execute

func Execute()

func InitValidationCmdFlags

func InitValidationCmdFlags(cmd *cobra.Command)

func NewAbcdBankValidator

func NewAbcdBankValidator() abcdBankValidator

func RunValidation

func RunValidation(cmd *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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