Michael Mirman
2017-02-16 02:16:05 UTC
Remember, if you set P4EDITOR to /bin/true, the editor won’t open.
You can even avoid piping -o | -i with that. You just have to make sure you provide all necessary arguments for the stream spec. For example,
env P4EDITOR=/bin/true p4 stream -P <current-stream> -t task <new-stream>
--
Michael Mirman
MathWorks, Inc.
508-647-7555
-----Original Message-----
From: perforce-user [mailto:perforce-user-***@perforce.com] On Behalf Of mcru
Sent: Wednesday, February 15, 2017 7:15 PM
To: perforce-***@perforce.com
Subject: [p4] How to create stream from CLI without having to open editor?
Posted on behalf of forum user 'mcru'.
I'm trying to create a p4 stream from the CLI w/o having to open the editor,
and none of the normal tricks are working for me. For example, if this was a
client spec, I can use the -o flag to pipe the contents of an existing client to
p4 client -i.
My goal here is to alias 'p4 stream -P <current stream> -t task
<generated dev task branch name>' that doesn't require editing the
stream spec file at all.
Thanks!
You can even avoid piping -o | -i with that. You just have to make sure you provide all necessary arguments for the stream spec. For example,
env P4EDITOR=/bin/true p4 stream -P <current-stream> -t task <new-stream>
--
Michael Mirman
MathWorks, Inc.
508-647-7555
-----Original Message-----
From: perforce-user [mailto:perforce-user-***@perforce.com] On Behalf Of mcru
Sent: Wednesday, February 15, 2017 7:15 PM
To: perforce-***@perforce.com
Subject: [p4] How to create stream from CLI without having to open editor?
Posted on behalf of forum user 'mcru'.
I'm trying to create a p4 stream from the CLI w/o having to open the editor,
and none of the normal tricks are working for me. For example, if this was a
client spec, I can use the -o flag to pipe the contents of an existing client to
p4 client -i.
My goal here is to alias 'p4 stream -P <current stream> -t task
<generated dev task branch name>' that doesn't require editing the
stream spec file at all.
Thanks!
--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/5180-how-to-create-stream-from-cli-without-having-to-open-editor
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/5180-how-to-create-stream-from-cli-without-having-to-open-editor
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://