ソースコードリポジトリの取得・管理を便利にするコマンドラインツール、ghqの使い方を説明します
何か下準備をしたり環境変数などに変更を加えてから指定したコマンドを起動するプログラムはたくさんある。bundle exec や npx, uv run や、拙作でも envchain などがそのようなプログラムの例だと思う。このようなプログラムは世間では executor と呼ばれているような気がするので、ここでもそう呼ぶことにする。 executor を最近あたらしく書いていて、ただそこでは指定されたコマンドを起動するだけではなく、そのコマンドのためのサーバーを裏で実行し続ける必要があり、ちょっとした工夫が必要だったのでメモ。 (なお、executor に指定されたコマンド = ユーザーや executor の親プロセスが最終的に起動を期待しているプログラムについては以後 command と表記) tl;dr executor が command の子プロセスになるようにする。execu
just is a handy way to save and run project-specific commands. This readme is also available as a book. The book reflects the latest release, whereas the readme on GitHub reflects latest master. (中文文档在 这里, 快看过来!) Commands, called recipes, are stored in a file called justfile with syntax inspired by make: You can then run them with just RECIPE: just has a ton of useful features, and many improvemen
cLive とは? cLive はシンプルな設定ファイルに基づいてターミナルを自動で操作するためのコマンドラインツールです。 自動操作するターミナルはブラウザで表示されます。 そのため、「任意のターミナルアプリで cLive を起動して、ブラウザだけ画面共有して自動ライブコーディングをする」といった使い方ができます。 JavaScript のライブコーディングデモ もちろん日本語入力も可能ですし、任意のタイミングで一時停止しておけば必要に応じて手動による操作もできます。 手動操作のデモ リポジトリ スターをもらえたら泣いて喜びます。 前提条件 cLive を使用するには事前に ttyd がインストールされている必要があります。 例えば homebrew を使用している場合、 brew install でインストールすることができます。
pv - Pipe Viewer - is a terminal-based tool for monitoring the progress of data through a pipeline and modifying its flow. When used just like "cat", pv displays how quickly data is being transferred, how long it has taken, how near to completion it is, and an estimate of how long it will be until completion. Data flow rate, error handling strategy, buffer size, and cache interaction can all be ad
2022/10/16 以下ご指摘をもとに内容を修正および追記 https://zenn.dev/link/comments/463223a4de9ec2 はじめに Linux上でコマンドを実行したときのコマンドライン引数についてつらつら書きたくなったので書きます。 プロセスのコマンドライン引数とは、たとえばfoo bar bazというコマンドを実行したら、通常はコマンドライン引数はfoo、bar、およびbazになります。直観的には引数は”bar”と"baz"だけのようにおもえるかもしれませんが、とにかくこういう定義です。 コマンドライン引数はプログラムの中からはCやC++ではmain関数のargv配列引数から参照できます。上述の例であればargv[0]には実行ファイル名が入ります。それ以降の"bar"はargv[1]に、"baz"はargv[2]に入っています。argvに相当する変数はシェ
先日、下記のタイトルを見て「どういうことだってばよ?」となったので。 あと、Markdown のコードブロックの言語指定を置き換えるコマンド作ろうかなと考えていたので(何が関係あるんだ?というのは後で出てきます)。 つまり、どういうこと? ちょっと触ってみた感じだと、README.md の中からコードブロックを抜き出し「説明付きで一覧にしたり」「実行したり」する CLI ツールを作ってみたということのようです。 そう聞くと「それはコードブロックをコピーして実行すればいいんじゃね」となりそうですが、 ドキュメント内でのコマンド実行のサンプルは以下のように行頭に $ が付いていたり。実行結果が併記されていたりすることがあります[1]。 rdme はその辺をなんかいい感じに実行してくれます。 リスト 1-1 サンプルの README.md # テスト ## Installation ```sh
Like many Unix users, I long ago created a ~/bin/ directory in my home directory and added it to my PATH so that I could supplement the wonderfully rich set of basic Unix commands with some conveniences and shell scripts of my own devising. The problem, of course, was the chance of collision. Because my shell script names tended to be short and pithy collections of lowercase characters, just like
Genially : Créez des présentations interactives et engageantes pour votre audience mai 3, 2025 Créer des présentations interactives et engageantes est devenu essentiel dans notre monde numérique. Grâce à des outils comme Genially, il est désormais possible de transformer … Read more Dafont : Téléchargez des polices gratuites pour vos projets créatifs mai 3, 2025 Explorer le monde du design graphiq
仕事用のマシンをM1 MacBook Proに交換してもらったので、開発環境を整え直しました。 2年ほど fish を使ってきたのだけれど、普段は良いのだけれど、ちょっと自動化したくなったときに、やはりPOSIX準拠じゃないシェルはなかなか難しかった。macOSの標準も zsh になったことだし、久しぶりに戻ってみることにした。 導入 現代なので XDG Base Directory Specification に乗っかっておくことにする。 Arch Linux の Wiki がよくまとまっていて助かるのでこれを参考にして進めた。 zshの場合は ZDOTDIR を指定するといいのだけれど、これをどこで指定するのかという問題がある。zshの起動時に最初に読み込まれるユーザー設定は ~/.zshenv なのだけれど、ここに ZDOTDIR を書くということは .zshenv だけホームディレ
aquaDeclarative CLI Version Manager. Unify tool versions in teams, projects, and CI. Easy, painless, and secure.
Toybox: all-in-one Linux command line. --- Getting started You can download static binaries for various targets from: http://landley.net/toybox/bin The special name "." indicates the current directory (just like ".." means the parent directory), and you can run a program that isn't in the $PATH by specifying a path to it, so this should work: wget http://landley.net/toybox/bin/toybox-x86_64 chmod
In this article, you’ll discover how command-line tools can do more for you.Earthly can transform your build processes. Learn more. Lately, I’ve been doing a lot more things at the command line. I’m not a hard-core terminal guy – I use VSCode more than Vim – but I’m always surprised at the number of complex tasks that can be done using just the POSIX standard command-line tools like grep, cat and
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く