All files / sn-client-js/src/Config snconfigbehavior.ts

100% Statements 5/5
100% Branches 2/2
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35                    1x         1x         1x         1x           1x      
/**
 * @module Config
 * @preferred
 * @description Library module for storing configuration related classes and interfaces.
 *//** */
 
 
/**
 * This enum represents an SnConfig field behavior. Values can be used as flags.
 */
export enum SnConfigBehavior {
 
    /**
     * Default, no special behavior defined. Not allowed to store in a Config file, will be asked as a plain text value
     */
    Default = 0,
 
    /**
     * Allows a config entry to be stored in a config file. Recommended for non-confidential values
     */
    AllowFromConfig = 1 << 0,
 
    /**
     * Allows a config entry to be specified via command line option. Recommended for non-confidential values
     */
    AllowFromCommandLine = 1 << 1,
 
    /**
     * The console input will be hidden, when a value is asked.
     * Recommended for confidential values (e.g. password for authentication)
     */
    HideConsoleInput = 1 << 2,
 
}