From 43d3971561ae3e898150e92cd65016e179c01367 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Fri, 7 May 2021 17:45:50 +0800 Subject: [PATCH] [auto task] sort & format --- tool/_project_manage.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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'], + ); +}