sh-functions's Issues
ISO8601形式で日付を取得する関数の修正
- コメントの追加
- -I オプションが使えない、dateコマンドにも対応する
- 自分の経験上、macosxしか該当しないので、このフレームワークは、macosxに対応する必要はないのだが、もしかしたらそういうシステムに出くわすかもしれないので、念のために対応しておく
macOSのdateコマンド
umetake:sh-framework umetake$ date --help
date: illegal option -- -
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
umetake:sh-framework umetake$
bashのテンプレートエンジンを試す
詳細あとで
ログ出力機能の実装
今の所、debugとinfo があればよい
関数のオプションチェック
オプション指定の確認
ISO8601形式で日付を取得する関数の作成
作成予定の関数一覧
time::iso8601::now
参考情報源
yyyy-MM-ddTHH:mm:ss
2014-10-10T13:50:40+09:00
バナーを作成する
ソフト名とリポジトリのURLを記載しておく
buildスクリプトの作成
すべてのファイルを連結して一つのファイルにするスクリプトの作成
出力形式のサンプルをコメントに記載しておく
関数宣言部のコメント欄に出力サンプルを記載しておく。
ISO8601形式で日付を取得する関数の作成
以下の関数を実装する
time::iso8601::yesterday
昨日の日付を表示する
time::iso8601::today
本日の日付を表示する
time::iso8601::tomorrow
明日の日付を表示する
ワークディレクトリの作成
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.