mirror of
https://github.com/dbcli/pgcli
synced 2024-05-31 01:17:54 +00:00
Add is_special to the \\o command
This commit is contained in:
parent
b44357dc67
commit
f520b2ebb2
|
@ -303,7 +303,7 @@ class PGCli(object):
|
|||
if not pattern:
|
||||
self.output_file = None
|
||||
message = 'File output disabled'
|
||||
return [(None, None, None, message, '', True)]
|
||||
return [(None, None, None, message, '', True, True)]
|
||||
filename = os.path.abspath(os.path.expanduser(pattern))
|
||||
if not os.path.isfile(filename):
|
||||
try:
|
||||
|
@ -311,10 +311,10 @@ class PGCli(object):
|
|||
except IOError as e:
|
||||
self.output_file = None
|
||||
message = str(e) + '\nFile output disabled'
|
||||
return [(None, None, None, message, '', False)]
|
||||
return [(None, None, None, message, '', False, True)]
|
||||
self.output_file = filename
|
||||
message = 'Writing to file "%s"' % self.output_file
|
||||
return [(None, None, None, message, '', True)]
|
||||
return [(None, None, None, message, '', True, True)]
|
||||
|
||||
def initialize_logging(self):
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ Save a named query.
|
|||
\o [filename]
|
||||
Send all query results to file.
|
||||
\pager [command]
|
||||
Set PAGER. Pring the query results via PAGER.
|
||||
Set PAGER. Print the query results via PAGER.
|
||||
\pset [key] [value]
|
||||
A limited version of traditional \pset
|
||||
\refresh
|
||||
|
|
Loading…
Reference in New Issue
Block a user