You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
é«éã«Goè¨èªã®CLIãã¼ã«ãã¤ããcli-initã¨ãããã¼ã«ãã¤ãã£ã tcnkms/cli-initã»GitHub cli-initã使ãã°ï¼Goè¨èªã³ãã³ãã©ã¤ã³ãã¼ã«ä½ææã®ã決ã¾ããã¿ã¼ã³ããã³ãã¬ã¼ãã¨ãã¦èªåçæãï¼ã³ã¢æ©è½ã®è¨è¿°ã«éä¸ãããã¨ãã§ããï¼ ã㢠以ä¸ã¯ç°¡åãªåä½ä¾ï¼ ä¸ã®ãã¢ã§ã¯ï¼addã¨listï¼deleteã¨ãããµãã³ãã³ãããã¤todoã¢ããªã±ã¼ã·ã§ã³ãçæãã¦ããï¼çæçµæã¯ï¼tcnksm/sample-cli-initã«ããï¼ èæ¯ Goè¨èªã§ä½ãããã³ãã³ãã©ã¤ã³ãã¼ã«ãè¦ã¦ããã¨ï¼codegangsta/cliã¨ããããã±ã¼ã¸ããã使ããã¦ããï¼ ããã¯ï¼ã³ãã³ãã©ã¤ã³ãã¼ã«ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®ç¾©ããããã®ã©ã¤ãã©ãªã§ï¼ããã使ãã°ï¼ãµãã³ãã³ãããã¤ã³ãã³ãã©ã¤ã³ãã¼ã«ãç°¡åã«ã¤ãããã¨ãã§ããï¼Usageãèªåã§çæãã¦ããããï¼bash
ãã®è¨äºã¯ã¯ã¦ãªã¨ã³ã¸ãã¢ã¢ããã³ãã«ã¬ã³ãã¼2014ã®8æ¥ç®ã§ãã ä»åã¯ãGoè¨èªã§ãµã¼ã管çãã¼ã« Mackerel ã®ã³ãã³ãã©ã¤ã³ãã¼ã«mkr ãä½ãã¨ãã«èª¿ã¹ããã¨ãèãããã¨ããã£ããã¨ã«ã¤ãã¦ç´¹ä»ãã¾ããï¼mkr ã¯ç¾æç¹ã§ã¯éçºçã§ã®æä¾ã«ãªãã¾ããï¼ ã³ãã³ãã©ã¤ã³ãã¼ã«ã«ã¤ã㦠ã³ãã³ãã©ã¤ã³ãã¼ã«ãä½ãã«ããã£ã¦ã@deeeet ããã® YAPC Asia 2014 ã§ã®çºè¡¨è³æãé常ã«åèã«ãªãã¾ãã æ¸ç± UNIXã¨ããèãæ¹ã¼ãã®ææ³ã¨å²å¦ ã®å 容ããã¼ã¹ã«ãã³ãã³ãã©ã¤ã³ãã¼ã«ã¯ã©ãããã¹ããã¨ãããã¨ãä¸å¯§ã«èª¬æããã¦ãã¾ãã ä¸è¨è³æããå¼ç¨ããã¦ããã ãã¨ãã³ãã³ãã©ã¤ã³ãã¼ã«ã«ããã¦éè¦ãªãã¤ã³ãã¯ä»¥ä¸ã®7ã¤ã§ããã¨ããã¦ãã¾ãã 1ã¤ã®ãã¨ã«éä¸ãã¦ãã ç´æçã«ä½¿ãã ä»ã®ãã¼ã«ã¨é£æºã§ãã å©ç¨ãå©ãã¦ããã é©åãªããã©ã«ãå¤ãæã¡è¨å®ãã§ã
ã³ãã³ãã©ã¤ã³ãã¼ã«ã«ã¤ãã¦èªãã¨ãã«åã®èªãã㨠- YAPC::Asia Tokyo 2014 ã³ãã³ãã©ã¤ã³ãã¼ã«ã好ãã§æããã¤ãã£ã¦ããï¼ ä»å¹´ã®YAPCã§ï¼ãã®ã³ãã³ãã©ã¤ã³ãã¼ã«ãã¤ããã¨ãã«ã©ããããã¨ãæèãã¦ä½ã£ã¦ããã®ãï¼ã©ã®ãããªæµãã§éçºãã¦ããã®ãï¼ã¨ãã£ããã¨ãèªãæ©ä¼ãããããï¼ å ·ä½çãªå 容ã«ã¤ãã¦ã¯ï¼æ¯éãã¼ã¯ãè´ãã«æ¥ã¦ãããã¨ãã¦ï¼ ã¹ã©ã¤ããã¤ããã«ãã£ãã£ã¦éå»ã«èªãã è³æãï¼ããåèã«ãã¦ããè¨äºãéãç´ããã®ã§ï¼ãã®ä¸é¨ãåèè³æã¨ãã¦ã¾ã¨ãã¦ããï¼ UNIXã¨ããèãæ¹ UNIXã¨ããèãæ¹ Mike Gancarzã«ããUNIXã®ææ³ãå²å¦ãã¾ã¨ããæ¬ï¼å¤ããå ¨ç¶è²ããã¦ãªãï¼ ã³ãã³ãã©ã¤ã³ãã¼ã«ã®ä½ãæ¹ãæ¸ããæ¬ã§ã¯ãªããï¼ãããã®ææ³ã®ä¸ã§åããã¼ã«ã¯ãã®ææ³ã«æºæ ãã¦ä½ãããã¹ãã ã¨æãï¼ä½åº¦ãèªãã§èãæ¹ãæã¿ä»ãããï¼ å°ãã
Getting Started A simple Thor class exposes an executable with a number of subcommands, like git or bundler. In a Thor class, public methods become commands. class MyCLI < Thor desc "hello NAME", "say hello to NAME" def hello(name) puts "Hello #{name}" end end You can start the CLI with a call to MyCLI.start(ARGV). Typically, you would do this in an executable in the bin directory of your gem. If
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}