Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !392

You need to sign in or sign up before continuing.
Merged
Created Sep 03, 2018 by Jérome Perrin@jeromeOwner

Format software instance JSON

  • Overview 8
  • Commits 3
  • Changes 53

Introduce a simple tool to format JSON for software instance definitions. This tool is inspired by python -m json.tool, but has the following differences:

  • keep the order of keys instead of sorting alphabetically (because we sometimes put the most important options at the top)
  • indent with 2 spaces

Run the tool on all the repository and commit the changes, with this command:

for x in $(find . -name '*.json') ; do  echo $x; ./format-json $x $x; done
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: feat/format-json
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7