{"version":3,"term":{"cols":120,"rows":36,"type":"xterm-256color"},"timestamp":1791143001,"title":"Custom CLI app with styled Atmos output","env":{"COLORTERM":"truecolor","SHELL":"/bin/zsh"}}
[0.005489917,"o","\u001b[1;38;2;0;163;224m\u003e \u001b[0m\u001b[?25h"]
[0.351162833,"o","\u001b[38;2;73;85;104m"]
[0.029539542,"o","#"]
[0.033983625,"o"," "]
[0.0779755,"o","A"]
[0.045580958,"o"," "]
[0.0938735,"o","c"]
[0.031255125,"o","u"]
[0.038638417,"o","s"]
[0.043895041,"o","t"]
[0.043715709,"o","o"]
[0.047807875,"o","m"]
[0.035173333,"o"," "]
[0.049479417,"o","C"]
[0.043089583,"o","L"]
[0.038969625,"o","I"]
[0.031955792,"o"," "]
[0.103483166,"o","a"]
[0.039212584,"o","p"]
[0.038901958,"o","p"]
[0.040952167,"o",":"]
[0.052793208,"o"," "]
[0.100664875,"o","A"]
[0.033569458,"o","t"]
[0.037609667,"o","m"]
[0.041693,"o","o"]
[0.045785292,"o","s"]
[0.030545166,"o"," "]
[0.058803292,"o","s"]
[0.038680917,"o","u"]
[0.042746833,"o","p"]
[0.045957417,"o","p"]
[0.031252041,"o","l"]
[0.046636875,"o","i"]
[0.042505,"o","e"]
[0.038427959,"o","s"]
[0.047635333,"o"," "]
[0.08411325,"o","t"]
[0.03915225,"o","h"]
[0.037208042,"o","e"]
[0.044629125,"o"," "]
[0.075130458,"o","i"]
[0.045402208,"o","n"]
[0.029794459,"o","t"]
[0.037273458,"o","e"]
[0.041332125,"o","r"]
[0.042486917,"o","p"]
[0.045751916,"o","r"]
[0.033874959,"o","e"]
[0.038285875,"o","t"]
[0.041916041,"o","e"]
[0.043091084,"o","r"]
[0.047397,"o"," "]
[0.082800291,"o","a"]
[0.036329417,"o","n"]
[0.032071958,"o","d"]
[0.030779084,"o"," "]
[0.091616791,"o","s"]
[0.039060334,"o","t"]
[0.035015208,"o","y"]
[0.041195083,"o","l"]
[0.037108209,"o","e"]
[0.036804291,"o","d"]
[0.040884334,"o"," "]
[0.087888541,"o","o"]
[0.04902325,"o","u"]
[0.039818584,"o","t"]
[0.043914291,"o","p"]
[0.047950334,"o","u"]
[0.032767291,"o","t"]
[0.000020209,"o","\u001b[0m"]
[0.550292041,"o","\n"]
[0.000288834,"o","\u001b[1;38;2;0;163;224m\u003e \u001b[0m\u001b[?25h"]
[0.352620875,"o","\u001b[38;2;255;255;255m"]
[0.033629166,"o","c"]
[0.037343375,"o","a"]
[0.04012125,"o","t"]
[0.044693584,"o"," "]
[0.066499666,"o","s"]
[0.040023417,"o","u"]
[0.043720708,"o","m"]
[0.028910584,"o","m"]
[0.028051458,"o","a"]
[0.031817375,"o","r"]
[0.031910833,"o","i"]
[0.028220834,"o","z"]
[0.042014333,"o","e"]
[0.038337875,"o","."]
[0.03464475,"o","s"]
[0.030942292,"o","t"]
[0.044765458,"o","a"]
[0.041054708,"o","r"]
[0.000015584,"o","\u001b[0m"]
[0.551090083,"o","\n"]
[0.005350958,"o","#!/usr/bin/env atmos\n"]
[0.012,"o","# Read structured data without installing another interpreter.\n"]
[0.012,"o","if len(ctx.args) != 1:\n"]
[0.012,"o","    fail(\"usage: ./summarize.star services.json\")\n"]
[0.012,"o","\n"]
[0.012,"o","def total_replicas(services):\n"]
[0.012,"o","    total = 0\n"]
[0.012,"o","    for service in services:\n"]
[0.012,"o","        total += service[\"replicas\"]\n"]
[0.012,"o","    return total\n"]
[0.012,"o","\n"]
[0.012,"o","services = json.decode(fs.read_file(ctx.args[0]))\n"]
[0.012,"o","for service in services:\n"]
[0.012,"o","    ui.info(\"{}: {} replicas\".format(service[\"name\"], service[\"replicas\"]))\n"]
[0.012,"o","ui.success(\"Total: {} services, {} replicas\".format(\n"]
[0.012,"o","    len(services),\n"]
[0.012,"o","    total_replicas(services),\n"]
[0.012,"o","))\n"]
[1.7974471250000001,"o","\u001b[1;38;2;0;163;224m\u003e \u001b[0m\u001b[?25h"]
[0.351252875,"o","\u001b[38;2;255;255;255m"]
[0.037361417,"o","."]
[0.033609,"o","/"]
[0.042562167,"o","s"]
[0.043771291,"o","u"]
[0.034575209,"o","m"]
[0.030875583,"o","m"]
[0.044721958,"o","a"]
[0.041057,"o","r"]
[0.031755042,"o","i"]
[0.028147792,"o","z"]
[0.044599125,"o","e"]
[0.030814833,"o","."]
[0.037244542,"o","s"]
[0.040965916,"o","t"]
[0.02982525,"o","a"]
[0.033399667,"o","r"]
[0.039972917,"o"," "]
[0.08904775,"o","s"]
[0.038970375,"o","e"]
[0.043381458,"o","r"]
[0.0429155,"o","v"]
[0.039268667,"o","i"]
[0.035561375,"o","c"]
[0.033688,"o","e"]
[0.040252208,"o","s"]
[0.036499125,"o","."]
[0.032841333,"o","j"]
[0.029191375,"o","s"]
[0.037440167,"o","o"]
[0.033751417,"o","n"]
[0.000017125,"o","\u001b[0m"]
[0.551368125,"o","\n"]
[1.19763125,"e","\u001b[38;2;65;153;225m▶\u001b[0m \u001b[38;2;247;250;252mapi: 2\u001b[0m\u001b[38;2;247;250;252m replicas\u001b[0m\u001b[38;2;247;250;252m\n"]
[0.000966458,"e","\u001b[38;2;65;153;225m▶\u001b[0m \u001b[38;2;247;250;252mworker: 3\u001b[0m\u001b[38;2;247;250;252m replicas\u001b[0m\u001b[38;2;247;250;252m\n"]
[0.002366292,"e","\u001b[38;2;72;187;120m✓\u001b[0m \u001b[38;2;247;250;252mTotal: 2 services, 5\u001b[0m\u001b[38;2;247;250;252m replicas\u001b[0m\u001b[38;2;247;250;252m\n"]
[2.965620375,"o","\u001b[1;38;2;0;163;224m\u003e \u001b[0m\u001b[?25h"]
