extensions-tool: Separate create metadata when prompting

When using the create command's --interactive option, we prompt for
any metadata that wasn't passed on the command line. As every prompt
is preceded by a short multi-line description, it is hard to follow
when everything is lumped together.

Improve legibility by separating all prompts by newlines.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/812
This commit is contained in:
Florian Müllner 2019-11-10 03:00:37 +01:00 committed by Florian Müllner
parent b6262f0666
commit 9719604b79

View File

@ -202,6 +202,8 @@ prompt_metadata (char **uuid, char **name, char **description)
line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL);
}
*name = g_strdelimit (line, "\n", '\0');
g_print ("\n");
}
if (description != NULL && *description == NULL)
@ -220,6 +222,8 @@ prompt_metadata (char **uuid, char **name, char **description)
line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL);
}
*description = g_strdelimit (line, "\n", '\0');
g_print ("\n");
}
if (uuid != NULL && *uuid == NULL)
@ -237,6 +241,8 @@ prompt_metadata (char **uuid, char **name, char **description)
line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL);
}
*uuid = g_strdelimit (line, "\n", '\0');
g_print ("\n");
}
}