diff --git a/tool/_project_manage.dart b/tool/_project_manage.dart index 5ec4f1c6..bc04b0ed 100644 --- a/tool/_project_manage.dart +++ b/tool/_project_manage.dart @@ -11,7 +11,7 @@ void format() { } @Task('自动提交修改') -@Depends(sort, format) +@Depends(sort, format, gitPush) void git() { log(' commit to git'); run( @@ -24,3 +24,12 @@ void git() { ], ); } + +@Task('推送代码') +void gitPush() { + log(' push to git'); + run( + 'git', + arguments: ['push'], + ); +}