1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1981],{9672(e,t,s){s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>p,frontMatter:()=>o,metadata:()=>l,toc:()=>d});const l=JSON.parse('{"id":"segments/cli/talosctl","title":"Talosctl Context","description":"What","source":"@site/docs/segments/cli/talosctl.mdx","sourceDirName":"segments/cli","slug":"/segments/cli/talosctl","permalink":"/docs/segments/cli/talosctl","draft":false,"unlisted":false,"editUrl":"https://github.com/jandedobbeleer/oh-my-posh/edit/main/website/docs/segments/cli/talosctl.mdx","tags":[],"version":"current","frontMatter":{"id":"talosctl","title":"Talosctl Context","sidebar_label":"Talosctl"},"sidebar":"docs","previous":{"title":"Svelte","permalink":"/docs/segments/cli/svelte"},"next":{"title":"Taskwarrior","permalink":"/docs/segments/cli/taskwarrior"}}');var n=s(4848),i=s(8453),a=s(6674);const o={id:"talosctl",title:"Talosctl Context",sidebar_label:"Talosctl"},r=void 0,c={},d=[{value:"What",id:"what",level:2},{value:"Sample Configuration",id:"sample-configuration",level:2},{value:"Template (info)",id:"template-info",level:2},{value:"Properties",id:"properties",level:3}];function h(e){const t={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h2,{id:"what",children:"What"}),"\n",(0,n.jsxs)(t.p,{children:["Displays the currently active ",(0,n.jsx)(t.a,{href:"https://www.talos.dev/",children:"Talosctl"})," context name."]}),"\n",(0,n.jsxs)(t.p,{children:["This segment leverages the ",(0,n.jsx)(t.code,{children:".talos/config"})," file generated by the ",(0,n.jsx)(t.a,{href:"https://www.talos.dev/",children:"Talosctl CLI"}),".\nThe CLI docs can be found by going to Documentation > Reference > CLI.\nFor example, ",(0,n.jsx)(t.a,{href:"https://www.talos.dev/v1.7/reference/cli/",children:"v1.7 CLI"}),"."]}),"\n",(0,n.jsx)(t.h2,{id:"sample-configuration",children:"Sample Configuration"}),"\n","\n",(0,n.jsx)(a.A,{data:{type:"talosctl",style:"powerline",powerline_symbol:"\ue0b0",foreground:"#FFFFFF",background:"#FF6C00",template:" \udb84\udcfe {{ .Context }}"}}),"\n",(0,n.jsxs)(t.h2,{id:"template-info",children:["Template (",(0,n.jsx)(t.a,{href:"/docs/configuration/templates",children:"info"}),")"]}),"\n",(0,n.jsx)(t.admonition,{title:"default template",type:"note",children:(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-template",children:" {{ .Context }}\n"})})}),"\n",(0,n.jsx)(t.h3,{id:"properties",children:"Properties"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Name"}),(0,n.jsx)(t.th,{children:"Type"}),(0,n.jsx)(t.th,{children:"Description"})]})}),(0,n.jsx)(t.tbody,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:".Context"})}),(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"string"})}),(0,n.jsx)(t.td,{children:"the current talosctl context"})]})})]})]})}function p(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.