false,
false,
safcm.MsgSyncResp{},
- "",
+ "no changes",
},
{
},
},
},
- "\nexecuted 5 command(s): (dry-run)\n\"fake command\"\n\"fake command with no output\"\n\"fake command with newline\"\n\"fake command with more output\"\n\"fake failed command\"\n",
+ "\nwill execute 5 command(s): (dry-run)\n\"fake command\"\n\"fake command with no output\"\n\"fake command with newline\"\n\"fake command with more output\"\n\"fake failed command\"\n",
},
{
"command changes only, quiet & dry-run",
},
},
},
- "executed 5 command(s) (dry-run)\n",
+ "will execute 5 command(s) (dry-run)\n",
},
}
},
},
},
- `changed 1 file(s): (dry-run)
+ `will change 1 file(s): (dry-run)
"file": created, file, user(1000) group(2000), 0644
`,
},
},
},
},
- "changed 1 file(s): (dry-run)\n\x1B[36m\"file\"\x1B[0m: \x1B[32mcreated\x1B[0m, file, user(1000) group(2000), 0644\n",
+ "will change 1 file(s): (dry-run)\n\x1B[36m\"file\"\x1B[0m: \x1B[32mcreated\x1B[0m, file, user(1000) group(2000), 0644\n",
},
{
Name: "package-two",
},
},
- `installed 2 package(s): (dry-run)
+ `will install 2 package(s): (dry-run)
"package-one"
"package-two"
`,
Name: "package-two",
},
},
- "installed 2 package(s): (dry-run)\n\x1b[36m\"package-one\"\x1b[0m\n\x1b[36m\"package-two\"\x1b[0m\n",
+ "will install 2 package(s): (dry-run)\n\x1b[36m\"package-one\"\x1b[0m\n\x1b[36m\"package-two\"\x1b[0m\n",
},
{
Enabled: true,
},
},
- `modified 3 service(s): (dry-run)
+ `will modify 3 service(s): (dry-run)
"service-one": started
"service-two": enabled
"service-three": started, enabled
Enabled: true,
},
},
- "modified 3 service(s): (dry-run)\n\x1b[36m\"service-one\"\x1b[0m: started\n\x1b[36m\"service-two\"\x1b[0m: enabled\n\x1b[36m\"service-three\"\x1b[0m: started, enabled\n",
+ "will modify 3 service(s): (dry-run)\n\x1b[36m\"service-one\"\x1b[0m: started\n\x1b[36m\"service-two\"\x1b[0m: enabled\n\x1b[36m\"service-three\"\x1b[0m: started, enabled\n",
},
{
[]safcm.CommandChange{
{
Command: "fake command",
- Output: "fake output",
},
},
- `executed 1 command(s): (dry-run)
-"fake command":
- > fake output
- > \ No newline at end of file
+ `will execute 1 command(s): (dry-run)
+"fake command"
`,
},
[]safcm.CommandChange{
{
Command: "fake command",
- Output: "fake output",
},
},
- "executed 1 command(s): (dry-run)\n\x1b[36m\"fake command\"\x1b[0m:\n > fake output\n > \\ No newline at end of file\n",
+ "will execute 1 command(s): (dry-run)\n\x1b[36m\"fake command\"\x1b[0m\n",
},
{
Error: "fake error",
},
},
- `executed 5 command(s), 1 with no output:
+ `executed 5 command(s), 1 with no output (hidden):
"fake command":
> fake output
> \ No newline at end of file
Error: "fake error",
},
},
- "executed 5 command(s), 1 with no output:\n\x1b[36m\"fake command\"\x1b[0m:\n > fake output\n > \\ No newline at end of file\n\x1b[36m\"fake command with newline\"\x1b[0m:\n > fake output\n\x1b[36m\"fake command with more output\"\x1b[0m:\n > fake out\n > fake put\n > fake\n\x1b[36m\"fake failed command\"\x1b[0m, failed: \"fake error\":\n > fake output\n > \\ No newline at end of file\n",
+ "executed 5 command(s), 1 with no output (hidden):\n\x1b[36m\"fake command\"\x1b[0m:\n > fake output\n > \\ No newline at end of file\n\x1b[36m\"fake command with newline\"\x1b[0m:\n > fake output\n\x1b[36m\"fake command with more output\"\x1b[0m:\n > fake out\n > fake put\n > fake\n\x1b[36m\"fake failed command\"\x1b[0m, failed: \"fake error\":\n > fake output\n > \\ No newline at end of file\n",
},
{
Command: "fake command with no output",
},
},
- `executed 2 command(s), 2 with no output
+ `executed 2 command(s), 2 with no output (hidden)
`,
},
Command: "fake command with no output",
},
},
- `executed 2 command(s), 1 with no output:
+ `executed 2 command(s), 1 with no output (hidden):
"fake command with no output but error", failed: "fake error"
`,
},
Command: "fake failed command",
},
},
- `executed 5 command(s) (dry-run)
+ `will execute 5 command(s) (dry-run)
`,
},