You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@renpytom how do you deal with butler credentials right now? Do you just tell your users to "do the login flow" in the console and come back?
I'm thinking of making the --json output mode work for the authentication flow, so that you could directly open a browser from within Ren'py. What do you think?
The text was updated successfully, but these errors were encountered:
Also tagging @elisee in there because he always has good advice.
The json output format already has stuff like:
{"level":"info","message":"• For channel `thequestion-bz2`: last build is 391, downloading its signature","type":"log"}
{"percentage":0.7633587786259541,"type":"progress"}
{"percentage":100,"type":"progress"}
{"percentage":100,"type":"progress"}
The structure is basically:
type field: log, error, or progress
for log
message: text contents of the log entry
level field: debug, info, etc. — debug can safely be ignored / not printed to users, but might be useful to you for internal debugging
for error
message: the error message. always fatal (otherwise it would be a log entry)
for progress
percentage: a floating-point value between 0 and 100
In json mode, butler should only output lines that are valid JSON objects — but for safety, it's advised that your consumer doesn't crash if it's not ;) the next lines might be.
So far, login and logout don't support json output mode, which means if you push and the credentials aren't there / valid, it'll start outputting plain text. This issue is here to fix that.
I think we'll just have to have a new message type, maybe type: 'login', with url: 'auth_url' — so that consumers of the JSON format know to open a browser?
I'd also like to find a way to output:
ETA information while pushing (not just %age which is non-linear) — basically, everything shown in the text progress bar should be accessible as JSON imho
Some info once the build is over? (patch size maybe?)
although patch size is misleading — it's brotli-q1 patch size, not optimized (brotli-q9) patch size so if people compare it with other toolchains' patches as-is, they'll find them slightly larger
@renpytom how do you deal with butler credentials right now? Do you just tell your users to "do the login flow" in the console and come back?
I'm thinking of making the
--json
output mode work for the authentication flow, so that you could directly open a browser from within Ren'py. What do you think?The text was updated successfully, but these errors were encountered: