/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/command_status.py

  • Committer: Tim Marston
  • Date: 2014-02-26 19:15:30 UTC
  • Revision ID: tim@ed.am-20140226191530-6x21vlwto2xx80cd
renamed updated_files to affected_files

Show diffs side-by-side

added added

removed removed

1
 
# status.py
 
1
# command_status.py
2
2
#
3
3
# Copyright (C) 2014 Tim Marston <tim@edm.am>
4
4
#
20
20
 
21
21
 
22
22
import sys, re, getopt
23
 
from command import Command
24
 
import stdhome.the as the
25
 
from stdhome.deployment import Deployment
26
 
from stdhome.walker.status import StatusWalker
27
 
 
28
 
 
29
 
class StatusCommand( Command ):
 
23
import the
 
24
from deployment import Deployment
 
25
from walker.status_walker import StatusWalker
 
26
 
 
27
 
 
28
class CommandStatus:
30
29
 
31
30
 
32
31
        def __init__( self ):
66
65
                                                'invalid repository name: ' + optarg )
67
66
                                self.repo = optarg
68
67
                        elif opt in [ '--verbose', '-v' ]:
69
 
                                the.verbose += 1
 
68
                                the.verbose = True
70
69
                        elif opt == "--help":
71
70
                                self.print_help()
72
71