[windows] stop

mksourcedir

chezmoi dump --format=json
cmpenv stdout golden/dump.json

chezmoi dump --format=json $HOME${/}.bashrc
cmpenv stdout golden/dump-bashrc.json

chezmoi dump --format=json $HOME${/}.ssh
cmpenv stdout golden/dump-ssh.json

chezmoi dump --format=json --recursive=false $HOME${/}.ssh
cmpenv stdout golden/dump-ssh-non-recursive.json

chezmoi dump --format=yaml
cmpenv stdout golden/dump.yaml

! chezmoi dump $HOME${/}.inputrc
stderr 'file does not exist'

-- golden/dump.json --
[
  {
    "type": "file",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/dot_absent",
    "targetPath": ".absent",
    "empty": false,
    "encrypted": false,
    "perm": 420,
    "template": false,
    "contents": ""
  },
  {
    "type": "file",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/dot_bashrc",
    "targetPath": ".bashrc",
    "empty": false,
    "encrypted": false,
    "perm": 420,
    "template": false,
    "contents": "# contents of .bashrc\n"
  },
  {
    "type": "file",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/executable_dot_binary",
    "targetPath": ".binary",
    "empty": false,
    "encrypted": false,
    "perm": 493,
    "template": false,
    "contents": "#!/bin/sh\n"
  },
  {
    "type": "file",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/dot_gitconfig.tmpl",
    "targetPath": ".gitconfig",
    "empty": false,
    "encrypted": false,
    "perm": 420,
    "template": true,
    "contents": "[core]\n  autocrlf = false\n[user]\n  email = you@example.com\n  name = Your Name\n"
  },
  {
    "type": "file",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/empty_dot_hushlogin",
    "targetPath": ".hushlogin",
    "empty": true,
    "encrypted": false,
    "perm": 420,
    "template": false,
    "contents": ""
  },
  {
    "type": "dir",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh",
    "targetPath": ".ssh",
    "exact": false,
    "perm": 448,
    "entries": [
      {
        "type": "file",
        "sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh/config",
        "targetPath": ".ssh/config",
        "empty": false,
        "encrypted": false,
        "perm": 420,
        "template": false,
        "contents": "# contents of .ssh/config\n"
      }
    ]
  },
  {
    "type": "symlink",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/symlink_dot_symlink",
    "targetPath": ".symlink",
    "template": false,
    "linkname": ".bashrc"
  }
]
-- golden/dump-bashrc.json --
[
  {
    "type": "file",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/dot_bashrc",
    "targetPath": ".bashrc",
    "empty": false,
    "encrypted": false,
    "perm": 420,
    "template": false,
    "contents": "# contents of .bashrc\n"
  }
]
-- golden/dump-ssh.json --
[
  {
    "type": "dir",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh",
    "targetPath": ".ssh",
    "exact": false,
    "perm": 448,
    "entries": [
      {
        "type": "file",
        "sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh/config",
        "targetPath": ".ssh/config",
        "empty": false,
        "encrypted": false,
        "perm": 420,
        "template": false,
        "contents": "# contents of .ssh/config\n"
      }
    ]
  }
]
-- golden/dump-ssh-non-recursive.json --
[
  {
    "type": "dir",
    "sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh",
    "targetPath": ".ssh",
    "exact": false,
    "perm": 448,
    "entries": null
  }
]
-- golden/dump.yaml --
- type: file
  sourcePath: $WORK/home/user/.local/share/chezmoi/dot_absent
  targetPath: .absent
  empty: false
  encrypted: false
  perm: 420
  template: false
  contents: ""
- type: file
  sourcePath: $WORK/home/user/.local/share/chezmoi/dot_bashrc
  targetPath: .bashrc
  empty: false
  encrypted: false
  perm: 420
  template: false
  contents: |
    # contents of .bashrc
- type: file
  sourcePath: $WORK/home/user/.local/share/chezmoi/executable_dot_binary
  targetPath: .binary
  empty: false
  encrypted: false
  perm: 493
  template: false
  contents: |
    #!/bin/sh
- type: file
  sourcePath: $WORK/home/user/.local/share/chezmoi/dot_gitconfig.tmpl
  targetPath: .gitconfig
  empty: false
  encrypted: false
  perm: 420
  template: true
  contents: |
    [core]
      autocrlf = false
    [user]
      email = you@example.com
      name = Your Name
- type: file
  sourcePath: $WORK/home/user/.local/share/chezmoi/empty_dot_hushlogin
  targetPath: .hushlogin
  empty: true
  encrypted: false
  perm: 420
  template: false
  contents: ""
- type: dir
  sourcePath: $WORK/home/user/.local/share/chezmoi/private_dot_ssh
  targetPath: .ssh
  exact: false
  perm: 448
  entries:
  - type: file
    sourcePath: $WORK/home/user/.local/share/chezmoi/private_dot_ssh/config
    targetPath: .ssh/config
    empty: false
    encrypted: false
    perm: 420
    template: false
    contents: |
      # contents of .ssh/config
- type: symlink
  sourcePath: $WORK/home/user/.local/share/chezmoi/symlink_dot_symlink
  targetPath: .symlink
  template: false
  linkname: .bashrc
