tuntunkun-org / noct Goto Github PK
View Code? Open in Web Editor NEWCommand line tool for notifications
License: Apache License 2.0
Command line tool for notifications
License: Apache License 2.0
SLACKに通知を送るコマンドを実装
環境変数 SLACK_WEBHOOK_URL
を適切に指定した状態で、下記のように --buttons
オプションを URL を含めずに指定すると IndexError
が発生し以上終了する。
noct slack --buttons google general hello eternalharvest
コマンドラインオプションのパース時に ':' で文字列分割をしているが、':' に続けて URL が指定されないと、URL 取得処理で配列の存在しないインデックスにアクセスすることにより IndexError
を誘発する。
指定された値が不正な値であるという意味でエラーには違いがないとしても IndexError
が表示されるのは不適切なので、ちゃんとエラー処理をする必要がある。また、URL 指定せずにボタンを設置できるようにすべきなのかについても熟考する必要があるかもしれない。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.