-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename conpty.New to conpty.Create #1254
Conversation
conpty.ConPTY is also kind of redundant.. Perhaps a different name for the package or a different name for the struct is in order. |
This change renames conpty.New, the method used to create a new ConPTY object, to Create instead. Mostly preference and to stay in line with what we'd named the method for creating a job object. The windows API used to create the pty is named 'CreatePseudoConsole' so to me it makes more sense. Signed-off-by: Daniel Canter <dcanter@microsoft.com>
c914313
to
f30a2d5
Compare
|
But also, if we are switching to |
That sounds pretty good to me and is probably better than the 'conpty.PseudoConsole' idea that was in my head haha |
This change renames conpty.New, the method used to create a new ConPTY object, to Create instead. Mostly preference and to stay in line with what we'd named the method for creating a job object. The windows API used to create the pty is named 'CreatePseudoConsole' so to me it makes more sense. Signed-off-by: Daniel Canter <dcanter@microsoft.com> (cherry picked from commit 0124eb3) Signed-off-by: Daniel Canter <dcanter@microsoft.com>
This change renames conpty.New, the method used to create a new ConPTY object, to Create instead. Mostly preference and to stay in line with what we'd named the method for creating a job object. The windows API used to create the pty is named 'CreatePseudoConsole' so to me it makes more sense. Signed-off-by: Daniel Canter <dcanter@microsoft.com> (cherry picked from commit 0124eb3) Signed-off-by: Daniel Canter <dcanter@microsoft.com>
This change renames conpty.New, the method used to create a new ConPTY object, to Create instead. Mostly preference and to stay in line with what we'd named the method for creating a job object. The windows API used to create the pty is named 'CreatePseudoConsole' so to me it makes more sense. Signed-off-by: Daniel Canter <dcanter@microsoft.com>
This change renames conpty.New, the method used to create a new ConPTY object, to Create instead. Mostly preference and to stay in line with what we'd named the method for creating a job object. The windows API used to create the pty is 'CreatePseudoConsole' so to me it makes more sense and would be more familiar to folks if this was ever moved out of /internal for outside use.