コード例 #1
0
ファイル: 1-MORROW.py プロジェクト: buchuki/oneday
#!/usr/bin/python
from todo.utils import open_day

open_day(1)
コード例 #2
0
ファイル: 1-TODAY.py プロジェクト: buchuki/oneday
#!/usr/bin/python3
from todo.utils import open_day
open_day()
コード例 #3
0
ファイル: 1-DELTA.py プロジェクト: buchuki/oneday
#!/usr/bin/python3
from todo.utils import open_day
import sys

try:
    open_day(int(sys.argv[1]))
except ValueError:
    print("Argument must be an integer")
except IndexError:
    print("Please specify the number of days from today")
コード例 #4
0
ファイル: 1-YESTERDAY.py プロジェクト: buchuki/oneday
#!/usr/bin/python3
from todo.utils import open_day

open_day(-1)