-
Notifications
You must be signed in to change notification settings - Fork 4
statusコマンドの実装 #170
statusコマンドの実装 #170
Conversation
@だれか レビューお願いします |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nitsです
src/haro/plugins/resource.py
Outdated
show_resources(message) | ||
|
||
|
||
@respond_to('^status\s+del\s+(\S+)$') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: (del|delete|rm|remove)
にして、2番目の引数捨てるほうがいいのでは
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、たしかにそういう記述方法ありますね。そのほうが見やすいので変えます 👍
if resource: | ||
s.delete(resource) | ||
s.commit() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: 削除しました的なメッセージがあると親切
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
操作ごとのメッセージは考えたんですが、常に最新の状態一覧を返しているのでないほうが簡潔かなーというポリシーです
status=None, | ||
)) | ||
s.commit() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: 追加しました的なメッセージがあると親切。 show_resources に追加のメッセージとか渡せるといいかも
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(削除と同じく)
チケットURL
このレビューで確認してほしい点
レビューチェックリスト