Esempio n. 1
0
        public static int EvaluateGroupName()
        {
            if (string.IsNullOrEmpty(Helper.Parameters.WorkingGroup))
            {
                return(ValidatorExtension.Error($"working group must be setted. please considere use '{Constants.RootCommand} group set <groupName>'."));
            }

            return(0);
        }
Esempio n. 2
0
        public static void Load()
        {
            if (File.Exists(filename))
            {
                var txt = File.ReadAllText(filename);
                Parameters = JsonConvert.DeserializeObject <Parameters>(txt);
            }
            else
            {
                Parameters = new Parameters();
            }

            if (!ValidatorExtension.CheckToken())
            {
                Helper.Parameters.Token = null;
            }
        }