nodecloud-cli
nodecloud-cli copied to clipboard
Create Validator and Perform Validation on Services (Input Flags)
Created helper validator argumentValidator:
- Validates
isStringby checking the typeof - Validates
isNotEmptyby checking that it's not an empty string, that it's not null and that it's not typeof undefined.
Implemented new validator for multiple arguments:
- image
- instance
- name
- id
- key
- value