TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Posh: A Data-Aware Shell

69 pointsby mlerneralmost 4 years ago

5 comments

chaoracealmost 4 years ago
A rather unfortunate name, given how Posh is also occasionally used as a shortening of PowerShell. Especially when PowerShell has a very similar shtick going for it.
评论 #28125391 未加载
评论 #28125033 未加载
评论 #28125376 未加载
评论 #28128472 未加载
评论 #28124996 未加载
评论 #28126587 未加载
评论 #28124854 未加载
rektidealmost 4 years ago
I spent some time looking at an Octodeploy build&#x2F;deployment system today, &amp; found that the use of tags on environment variables was really interesting &amp; effective. There would be one deploy process, but with a couple different copies of some environment variables, tagged with the different deployment targets. It made it easy to get an overall look at the many deploys, &amp; see what was tagged where.<p>&gt; <i>To make decisions about which parts of a script are executed remotely, POSH produces a graph representation of the shell script’s execution - the nodes in the graph are commands, while the edges represent the flow of data between commands. Correctly transforming a shell script into this graph representation is a nuanced, yet critical function. To facilitate it, POSH leverages an annotation language capable of describing a given command’s parameters, inputs, and outputs (as well as a number of important configuration options).</i><p>Posh is likewise using annotations to explain to itself what pieces of deployment (of a part of a shell command) may be done on which systems. Unlike the octodeploy I was looking at, where one unified deploy could be instantiated for differently tagged environments, Posh is building pipelines that span multiple systems, and using the system annotations to figure out where to schedule bits of work.<p>&gt; <i>I wanted to note two important components of the annotation language important to understanding the rest of the paper. First, the annotations can be defined per command and per argument - this flexibility is important because different arguments to a command can change its behavior and arguments. Second, a command’s inputs&#x2F;outputs can be typed, and its behavior is defined. For example, the annotation language can indicate a command’s parallelizablity or whether the command relies on the current directory. Defining these properties of a command allow the parser and scheduler to answer the three questions above.</i><p>Quite enjoying this write-up! Excellent highlight of contributions &amp; core characteristics.
agent327almost 4 years ago
I wish there was an HTML shell, where applications can output not just text, but structured text, tables, even images. Where an application could have an &#x27;easy mode&#x27; for uncommon tasks where it just prints a user interface with a few buttons.
评论 #28126986 未加载
评论 #28127306 未加载
评论 #28129290 未加载
评论 #28127853 未加载
评论 #28129671 未加载
评论 #28126640 未加载
评论 #28129470 未加载
评论 #28126624 未加载
fooblatalmost 4 years ago
I&#x27;m struggling to understand what problem this is meant to solve. I&#x27;ve been working in high scale production environments for 15+ years and I can&#x27;t think of a situation where I&#x27;d mount a network file server and run a local script to parse logs there.<p>If this is what you want to do there is almost certainly a better solution that involves parsing the logs another way entirely.
评论 #28132092 未加载
orhmeh09almost 4 years ago
It’s weirdly difficult to find a link to the code in this body of text. Here: <a href="https:&#x2F;&#x2F;github.com&#x2F;deeptir18&#x2F;posh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;deeptir18&#x2F;posh</a><p>No updates in 13 months, FWIW