public void DeleteApplication(string ownerName, string name)
        {
            var command = CreateCommand(AppsCommand, $"delete --app \"{ownerName}/{name}\"");

            BashHelper.ExecuteBashCommandWithConfirmation(command);
            ApplicationsChanged?.Invoke(this, new EventArgs());
        }
        public Application CreateApplication(string displayName, string os, string platform)
        {
            Application application = new Application();

            var command = CreateCommand(AppsCommand, $"create -d \"{displayName}\"  -o \"{os}\"  -p \"{platform}\"");
            var result  = BashHelper.ExecuteBashCommand(command);

            string[] lines = Regex.Split(result.Output, "\n");

            application = Application.ParseFromString(lines);

            ApplicationsChanged?.Invoke(this, new EventArgs());

            return(application);
        }
        public Application UpdateApplication(string ownerName, string name, string displayName, string description)
        {
            Application application = new Application();

            var command = CreateCommand(AppsCommand, $"update --app \"{ownerName}/{name}\"  -n \"{name}\" -d \"{displayName}\" -description \"{description}\"");
            var result  = BashHelper.ExecuteBashCommand(command);

            string[] lines = Regex.Split(result.Output, "\n");

            application = Application.ParseFromString(lines);

            ApplicationsChanged?.Invoke(this, new EventArgs());

            return(application);
        }
 void OnApplicationsChanged(object sender, EventArgs e)
 {
     ApplicationsChanged?.Invoke(this, new EventArgs());
 }