diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-03-01 12:49:47 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-03-01 12:49:47 +0100 |
commit | d822df3dad0525f35dbacda9d5a66f4756f079ff (patch) | |
tree | 1387c5a7e8fd669c11f61d04a4ab71607867ecf8 /bsfs/apps/init.py | |
parent | f9eec185bf3d857c220e5d78de75ec6713437330 (diff) | |
download | bsfs-d822df3dad0525f35dbacda9d5a66f4756f079ff.tar.gz bsfs-d822df3dad0525f35dbacda9d5a66f4756f079ff.tar.bz2 bsfs-d822df3dad0525f35dbacda9d5a66f4756f079ff.zip |
Integrate main app into package
Diffstat (limited to 'bsfs/apps/init.py')
-rw-r--r-- | bsfs/apps/init.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bsfs/apps/init.py b/bsfs/apps/init.py index 3e2ef37..ec48525 100644 --- a/bsfs/apps/init.py +++ b/bsfs/apps/init.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Part of the BlackStar filesystem (bsfs) module. @@ -60,9 +61,10 @@ def main(argv): # print config if args.output is not None: with open(args.output, mode='wt', encoding='UTF-8') as ofile: - json.dump(config, ofile) + json.dump(config, ofile, indent=4) else: - json.dump(config, sys.stdout) + json.dump(config, sys.stdout, indent=4) + print('') ## main ## |