Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
New Business Card
Search
Koki Natsume
July 14, 2018
Programming
0
1.1k
New Business Card
会津 春のLT大会 2018の資料です。
GoでCLI名刺を作る話です。
Koki Natsume
July 14, 2018
Tweet
Share
More Decks by Koki Natsume
See All by Koki Natsume
5分で入門するFlutter
natumn
0
1.4k
僕がGoを選ぶ理由
natumn
0
1.1k
Other Decks in Programming
See All in Programming
Go言語はstack overflowの夢を見るか?
logica0419
0
240
CSC509 Lecture 06
javiergs
PRO
0
260
Your Perfect Project Setup for Angular @BASTA! 2025 in Mainz
manfredsteyer
PRO
0
170
Swift Concurrency - 状態監視の罠
objectiveaudio
2
520
Range on Rails ―「多重範囲型」という新たな選択肢が、複雑ロジックを劇的にシンプルにしたワケ
rizap_tech
0
120
What's new in Spring Modulith?
olivergierke
1
140
Catch Up: Go Style Guide Update
andpad
0
220
Foundation Modelsを実装日本語学習アプリを作ってみた!
hypebeans
0
110
明日から始めるリファクタリング
ryounasso
0
140
dynamic!
moro
10
7.4k
私はどうやって技術力を上げたのか
yusukebe
43
18k
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
220
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
331
21k
How to Ace a Technical Interview
jacobian
280
24k
The Pragmatic Product Professional
lauravandoore
36
6.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Six Lessons from altMBA
skipperchong
28
4k
4 Signs Your Business is Dying
shpigford
185
22k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
The Cost Of JavaScript in 2023
addyosmani
54
9k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
30
2.9k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Transcript
NEW BUSINESS CARD 5/26 SPRING LT IN U-AIZU
1 WHO ▸natumn ▸ձେֶ̏ੜ
2 ໊
2 CLI ໊
4 CLI BUSINESS CARD ▸ CUI্ʹϓϩϑΟʔϧΛදࣔ͢ΔΞϓϦ ▸ ͓खܰ ▸ ݩωλ
@sindresorhus(γϯυϨ ιϦϡʔ ε)͞Μͷ “My new business card” ͷπΠʔ τ
5 CLI BUSINESS CARD
6 CLI BUSINESS CARD ▸ CUI্͔ΒϓϩϑΟʔϧΛදࣔ͢ΔΞϓϦ ▸ ͓खܰ ▸ ݩωλ
@sindresorhus͞Μͷ “My new business card” ͷπΠʔτ
7 CLI BUSINESS CARD ▸ CUI্͔ΒϓϩϑΟʔϧΛදࣔ͢ΔΞϓϦ ▸ ͓खܰ ▸ ݩωλ
@sindresorhus͞Μͷ “My new business card” ͷπΠʔτ ▸ npx {ύοέʔδ໊} Ͱ࣮ߦ ▸ ެ։github.com/sindresorhus/sindresorhus
8 NPX COMMAND ▸ npmͷύοέʔδͷμϩʔυͱ࣮ߦΛ͢ ΔCLIπʔϧ ▸ ϩʔΧϧʹ͋Δ߹ɺϩʔΧϧ༏ઌͰ࣮ߦ ▸ npm
v5.2.0 ͔Βಋೖ͞Εͨ
9 CLI BUSINESS CARD $ npx natumn
10
11 ͍
12 ͬͱγϡοͱ͘ද͍ࣔͤͨ͞…
13 $ gpx
14 GPX COMMAND ▸ githubͳͲͰެ։͞Ε͍ͯΔGoͷϓϩάϥϜΛ࣮ ߦ͢ΔCLIπʔϧ( https://github.com/natumn/gpx ) ▸ npxͷGo࣮
(https://github.com/zkat/npx) ▸ npxͷഒҎ্ͷύϑΥʔϚϯε͕ඪ ▸ ex> $ gpx github.com/natumn/natumn
15 GPX COMMAND npx : 15~20ඵ gpx : ̍~̎ඵ
16 ͍ʂ
17 ΊͬͪΌ͍ʂ
18 ͜ΕgpxͰCLI business card ࡞Δ͔͠ͳ͍ʂ
19 ·ͱΊ ▸ CLI Business Card ͱ͍͏͓ख໊ܰΞϓϦ ͕ྲྀߦ͍ͬͯΔ ▸ npx͕͍ͷͰGo൛ͷgpxΛ࡞ͬͨ
▸ npx, gpxͰcli ໊࡞ͬͯ΄͍͠
20 ͝੩ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠