@: added external-init command

@lmartinking

Here's a clean topic branch for adding new command "external-init". Feel free to add it as you please in your own time.

Thanks,
icasimpan
Hi,

De-indentation per your suggestion is implemented in my topic branch
(NEWCMD_external-init). See latest commit: 0b41c0b
<https://github.com/icasimpan/monkey-tail/commit/0b41c0b492e90ca94653e59e0352ff8ef58bc5b8>

Thanks.


On Thu, Aug 21, 2014 at 2:40 PM, Ismael Angelo Casimpan <
ismael.angelo@casimpan.com> wrote:

> Ok, I'll de-indent heredoc and remove the de-indentation sed line...
>
>
> On Thu, Aug 21, 2014 at 1:42 PM, Lucas Martin-King <
> notifications@github.com> wrote:
>
>> In @:
>>
>> > + name=$( basename $origin )
>> > +
>> > + echo $name
>> > +
>> > + [[ -e $origin ]] && die "An external already exist by that name"
>> > +
>> > + cat > $origin <<EOF
>> > +  # @
>> > +  # |external-skel||describe what external-skel do|
>> > +  _external-skel () {
>> > +   echo "body of external-skel here"
>> > +  }
>> > +EOF
>> > +
>> > + sed -i "s/external-skel/$name/g" $origin
>> > + sed -i "s/^  //" $origin
>>
>> I see you are de-indenting it here. Just remove the indentation from
>> above, as this is fragile.
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/lmartinking/monkey-tail/pull/4/files#r16521446>.
>>
>
>
>
> --
> Ismael Angelo A. Casimpan Jr.
> ismael.angelo@casimpan.com
>
>


-- 
Ismael Angelo A. Casimpan Jr.
ismael.angelo@casimpan.com