Passing an enum value as command parameter from XAML

I want to pass an enum value as command parameter in WPF, using something like this: <Button x:Name=”uxSearchButton” Command=”{Binding Path=SearchMembersCommand}” CommandParameter=”SearchPageType.First” Content=”Search”> </Button> SearchPageType is an enum and this is to know from which button search command is invoked. Is this possible in WPF, or how can you pass an enum value as command parameter? … Read more

node.js execute system command synchronously

I need in node.js function result = execSync(‘node -v’); that will synchronously execute the given command line and return all stdout’ed by that command text. ps. Sync is wrong. I know. Just for personal use. UPDATE Now we have mgutz’s solution which gives us exit code, but not stdout! Still waiting for a more precise … Read more

Git alias with positional parameters

Basically I’m trying to alias: git files 9fa3 …to execute the command: git diff –name-status 9fa3^ 9fa3 but git doesn’t appear to pass positional parameters to the alias command. I have tried: [alias] files = “!git diff –name-status $1^ $1” files = “!git diff –name-status {1}^ {1}” …and a few others but those didn’t work. … Read more