Skip to content

Commit

Permalink
tools.deploy: add a MAIN:.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Dec 26, 2015
1 parent 216a123 commit 7e40b60
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions basis/tools/deploy/deploy.factor
@@ -1,7 +1,8 @@
! Copyright (C) 2007, 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.deploy.backend system vocabs vocabs.loader kernel
combinators tools.deploy.config.editor ;
USING: combinators command-line kernel namespaces sequences
system tools.deploy.backend tools.deploy.config.editor vocabs
vocabs.loader ;
IN: tools.deploy

ERROR: no-vocab-main vocab ;
Expand All @@ -21,3 +22,8 @@ ERROR: no-vocab-main vocab ;
{ [ os windows? ] [ "tools.deploy.windows" ] }
{ [ os unix? ] [ "tools.deploy.unix" ] }
} cond require

: deploy-main ( -- )
command-line get [ [ require ] [ deploy ] bi ] each ;

MAIN: deploy-main

0 comments on commit 7e40b60

Please sign in to comment.