|
| 1 | +# これは何? |
| 2 | + |
| 3 | +[gitignore.io](https://www.toptal.com/developers/gitignore/) のAPIを利用してプログラム言語の ```.gitignore``` ファイルを作成するツールです。 |
| 4 | + |
| 5 | +windows用とlinux用のバイナリを用意しています。 |
| 6 | + |
| 7 | +- Windows |
| 8 | + - bin/windows/amd64/gitignore.exe |
| 9 | +- Linux |
| 10 | + - bin/linux/amd64/gitignore |
| 11 | + |
| 12 | +## 使い方 |
| 13 | + |
| 14 | +```sh |
| 15 | +$ ./gitignore.exe help |
| 16 | +gitignore - .gitignoreを生成するツール |
| 17 | + |
| 18 | + Usage: |
| 19 | + gitignore [lang|list] |
| 20 | + |
| 21 | + Subcommands: |
| 22 | + lang 指定した言語で .gitignore を出力 |
| 23 | + list 利用可能言語リストを出力 |
| 24 | + |
| 25 | + Flags: |
| 26 | + --version Displays the program version string. |
| 27 | + -h --help Displays help with available flag, subcommand, and positional value parameters. |
| 28 | +``` |
| 29 | + |
| 30 | +サブコマンドには ```lang``` と ```list``` があります。 |
| 31 | + |
| 32 | +例として java の ```.gitignore``` を出力したい場合は |
| 33 | + |
| 34 | +```sh |
| 35 | +$ ./gitignore.exe lang java > .gitignore |
| 36 | +``` |
| 37 | + |
| 38 | +Cの場合は |
| 39 | + |
| 40 | +```sh |
| 41 | +$ ./gitignore.exe lang c > .gitignore |
| 42 | +``` |
| 43 | + |
| 44 | +C++の場合は |
| 45 | + |
| 46 | +```sh |
| 47 | +$ ./gitignore.exe lang c++ > .gitignore |
| 48 | +``` |
| 49 | + |
| 50 | +Goの場合は |
| 51 | + |
| 52 | +```sh |
| 53 | +$ ./gitignore.exe lang go > .gitignore |
| 54 | +``` |
| 55 | + |
| 56 | +Pythonの場合は |
| 57 | + |
| 58 | +```sh |
| 59 | +$ ./gitignore.exe lang python > .gitignore |
| 60 | +``` |
| 61 | + |
| 62 | +.NETの場合は |
| 63 | + |
| 64 | +```sh |
| 65 | +$ ./gitignore.exe lang visualstudio > .gitignore |
| 66 | +``` |
| 67 | + |
| 68 | +対応している言語のリストを見る場合は ```list``` を使います。 |
| 69 | + |
| 70 | +```sh |
| 71 | +$ ./gitignore.exe list |
| 72 | +1c,1c-bitrix,a-frame,actionscript,ada |
| 73 | +adobe,advancedinstaller,adventuregamestudio,agda,al |
| 74 | +alteraquartusii,altium,amplify,android,androidstudio |
| 75 | +angular,anjuta,ansible,ansibletower,apachecordova |
| 76 | +apachehadoop,appbuilder,appceleratortitanium,appcode,appcode+all |
| 77 | +appcode+iml,appengine,aptanastudio,arcanist,archive |
| 78 | +archives,archlinuxpackages,asdf,aspnetcore,assembler |
| 79 | +astro,ate,atmelstudio,ats,audio |
| 80 | +autohotkey,automationstudio,autotools,autotools+strict,awr |
| 81 | +azurefunctions,azurite,backup,ballerina,basercms |
| 82 | +basic,batch,bazaar,bazel,bitrise |
| 83 | +bitrix,bittorrent,blackbox,blender,bloop |
| 84 | +bluej,bookdown,bower,bricxcc,buck |
| 85 | +c,c++,cake,cakephp,cakephp2 |
| 86 | +cakephp3,calabash,carthage,certificates,ceylon |
| 87 | +cfwheels,chefcookbook,chocolatey,circuitpython,clean |
| 88 | +clion,clion+all,clion+iml,clojure,cloud9 |
| 89 | +cmake,cocoapods,cocos2dx,cocoscreator,codeblocks |
| 90 | +codecomposerstudio,codeigniter,codeio,codekit,codesniffer |
| 91 | +coffeescript,commonlisp,compodoc,composer,compressed |
| 92 | +compressedarchive,compression,conan,concrete5,coq |
| 93 | +cordova,craftcms,crashlytics,crbasic,crossbar |
| 94 | +crystal,cs-cart,csharp,cuda,cvs |
| 95 | +cypressio,d,dart,darteditor,data |
| 96 | +database,datarecovery,dbeaver,dbt,defold |
| 97 | +delphi,deno,dframe,diff,direnv |
| 98 | +diskimage,django,dm,docfx,docpress |
| 99 | +docusaurus,docz,dotenv,dotfilessh,dotnetcore |
| 100 | +dotsettings,doxygen,dreamweaver,dropbox,drupal |
| 101 | +drupal7,drupal8,e2studio,eagle,easybook |
| 102 | +eclipse,eiffelstudio,elasticbeanstalk,elisp,elixir |
| 103 | +elm,emacs,ember,ensime,episerver |
| 104 | +erlang,espresso,executable,exercism,expressionengine |
| 105 | +extjs,fancy,fastlane,finale,firebase |
| 106 | +fish,flashbuilder,flask,flatpak,flex |
| 107 | +flexbuilder,floobits,flutter,font,fontforge |
| 108 | +forcedotcom,forgegradle,fortran,freecad,freepascal |
| 109 | +fsharp,fuelphp,fusetools,games,gatsby |
| 110 | +gcov,genero4gl,geth,ggts,gis |
| 111 | +git,gitbook,go,godot,goland |
| 112 | +goland+all,goland+iml,goodsync,gpg,gradle |
| 113 | +grails,greenfoot,groovy,grunt,gwt |
| 114 | +haskell,helm,hexo,hol,homeassistant |
| 115 | +homebrew,hsp,hugo,hyperledgercomposer,iar |
| 116 | +iar_ewarm,iarembeddedworkbench,idapro,idris,igorpro |
| 117 | +images,infer,inforcms,inforcrm,intellij |
| 118 | +intellij+all,intellij+iml,ionic3,jabref,janet |
| 119 | +java,jboss,jboss-4-2-3-ga,jboss-6-x,jboss4 |
| 120 | +jboss6,jdeveloper,jekyll,jenv,jetbrains |
| 121 | +jetbrains+all,jetbrains+iml,jgiven,jigsaw,jmeter |
| 122 | +joe,joomla,jsonnet,jspm,julia |
| 123 | +jupyternotebooks,justcode,kaldi,kate,kdevelop4 |
| 124 | +kdiff3,keil,kentico,keystonejs,kicad |
| 125 | +kirby2,kirby3,kobalt,kohana,komodoedit |
| 126 | +konyvisualizer,kotlin,labview,labviewnxg,lamp |
| 127 | +laravel,latex,lazarus,leiningen,lemonstand |
| 128 | +less,liberosoc,librarian-chef,libreoffice,lighthouseci |
| 129 | +lilypond,linux,lithium,localstack,logtalk |
| 130 | +lsspice,ltspice,lua,lyx,macos |
| 131 | +magento,magento1,magento2,magic-xpa,matlab |
| 132 | +maven,mavensmate,mdbook,mean,mercurial |
| 133 | +mercury,meson,metals,metalsmith,metaprogrammingsystem |
| 134 | +meteor,meteorjs,microsoftoffice,mikroc,mill |
| 135 | +moban,modelsim,modx,momentics,monodevelop |
| 136 | +mplabx,mule,nanoc,nativescript,ncrunch |
| 137 | +nesc,netbeans,nette,nextjs,nikola |
| 138 | +nim,ninja,node,nodechakratimetraveldebug,nohup |
| 139 | +notepadpp,nova,now,nuxtjs,nwjs |
| 140 | +objective-c,obsidian,ocaml,octave,octobercms |
| 141 | +opa,opencart,opencv,openfoam,openframeworks |
| 142 | +openframeworks+visualstudio,oracleforms,orcad,osx,otto |
| 143 | +oxideshop,oxygenxmleditor,packer,pants,particle |
| 144 | +patch,pawn,perl,perl6,ph7cms |
| 145 | +phalcon,phoenix,php-cs-fixer,phpcodesniffer,phpstorm |
| 146 | +phpstorm+all,phpstorm+iml,phpunit,pico8,pimcore |
| 147 | +pimcore4,pimcore5,pinegrow,platformio,playframework |
| 148 | +plone,polymer,powershell,premake-gmake,prepros |
| 149 | +prestashop,processing,progressabl,psoccreator,pulumi |
| 150 | +pulumi+stacks,puppet,puppet-librarian,purebasic,purescript |
| 151 | +putty,pvs,pycharm,pycharm+all,pycharm+iml |
| 152 | +pydev,python,pythonvanilla,qml,qooxdoo |
| 153 | +qt,qtcreator,r,racket,rails |
| 154 | +react,reactnative,reasonml,red,redcar |
| 155 | +redis,remix,remix+arc,remix+cloudflarepages,remix+cloudflareworkers |
| 156 | +remix+netlify,remix+vercel,renpy,replit,retool |
| 157 | +rhodesrhomobile,rider,robotframework,root,ros |
| 158 | +ros2,ruby,rubymine,rubymine+all,rubymine+iml |
| 159 | +rust,rust-analyzer,salesforce,salesforcedx,sam |
| 160 | +sam+config,sas,sass,sbt,scala |
| 161 | +scheme,scons,scrivener,sdcc,seamgen |
| 162 | +senchatouch,serverless,shopware,silverstripe,sketchup |
| 163 | +slickedit,smalltalk,snap,snapcraft,snyk |
| 164 | +solidity,soliditytruffle,sonar,sonarqube,sourcepawn |
| 165 | +spark,specflow,splunk,spreadsheet,ssh |
| 166 | +standardml,stata,stdlib,stella,stellar |
| 167 | +storybookjs,strapi,stylus,sublimetext,sugarcrm |
| 168 | +svelte,svn,swift,swiftpackagemanager,swiftpm |
| 169 | +symfony,symphonycms,synology,synopsysvcs,tags |
| 170 | +tarmainstallmate,terraform,terragrunt,test,testcomplete |
| 171 | +testinfra,tex,text,textmate,textpattern |
| 172 | +theos-tweak,thinkphp,tla+,toit,tortoisegit |
| 173 | +tower,turbo,turbogears2,twincat3,tye |
| 174 | +typings,typo3,typo3-composer,umbraco,unity |
| 175 | +unrealengine,vaadin,vagrant,valgrind,vapor |
| 176 | +vcpkg,venv,vercel,vertx,video |
| 177 | +vim,virtualenv,virtuoso,visualbasic,visualstudio |
| 178 | +visualstudiocode,vivado,vlab,vrealizeorchestrator,vs |
| 179 | +vue,vuejs,vvvv,waf,wakanda |
| 180 | +web,webmethods,webstorm,webstorm+all,webstorm+iml |
| 181 | +werckercli,windows,wintersmith,wordpress,wyam |
| 182 | +xamarinstudio,xcode,xcodeinjection,xilinx,xilinxise |
| 183 | +xilinxvivado,xill,xmake,xojo,xtext |
| 184 | +y86,yalc,yarn,yeoman,yii |
| 185 | +yii2,zendframework,zephir,zig,zsh |
| 186 | +zukencr8000 |
| 187 | +``` |
| 188 | + |
| 189 | +## 参考情報 |
| 190 | + |
| 191 | +- https://zenn.dev/kiri_i/articles/gitignore_io |
| 192 | +- https://docs.gitignore.io/use/api |
0 commit comments