mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Changed calling signature of output_for_cli(); started work on 'textui' backend plugin
This commit is contained in:
7
ipa
7
ipa
@@ -30,7 +30,12 @@ from ipalib import api
|
||||
from ipalib.cli import CLI
|
||||
|
||||
if __name__ == '__main__':
|
||||
# If we can't explicitly determin the encoding, we assume UTF-8:
|
||||
if sys.stdin.encoding is None:
|
||||
encoding = 'UTF-8'
|
||||
else:
|
||||
encoding = sys.stdin.encoding
|
||||
cli = CLI(api,
|
||||
(s.decode('utf-8') for s in sys.argv[1:])
|
||||
(s.decode(encoding) for s in sys.argv[1:])
|
||||
)
|
||||
sys.exit(cli.run())
|
||||
|
||||
Reference in New Issue
Block a user