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
Ruby GitHub Packages
bkuhlmann
0
630
Elm 0.19.0 Changes
bkuhlmann
0
490
PHPはいつから死んでいるかの調査
chiroruxx
1
400
VSCodeでのDatabricks開発もお勧めしたい/I would also recommend Databricks development with VSCode.
kazumain
0
260
Code Reviews
bkuhlmann
4
890
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
380
What We Can Learn From OSS
inouehi
0
420
Apache Hive 4 on Treasure Data
ryukobayashi
0
330
Milestoner
bkuhlmann
1
410
Kotlin Multiplatform at Stable and Beyond (Android Makers 2024)
zsmb
0
270
新宿ダンジョンを可視化してみた
satoshi7190
2
260
Hanami and htmx
bkuhlmann
0
210
Featured
See All Featured
Being A Developer After 40
akosma
57
580k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Atom: Resistance is Futile
akmur
259
25k
Embracing the Ebb and Flow
colly
80
4.1k
Testing 201, or: Great Expectations
jmmastey
28
6.4k
Automating Front-end Workflow
addyosmani
1356
200k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Fireside Chat
paigeccino
21
2.6k
The Illustrated Children's Guide to Kubernetes
chrisshort
31
46k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
9
8.3k
Mobile First: as difficult as doing things right
swwweet
216
8.6k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
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 ͝੩ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠