예제 #1
0
 public ViewCommand(Session session)
     : base(session)
 {
     Name = CommandName;
     Params = new Param[1];
     var ptype = new PType {Help = "View name type", Method = MethodType.Regexp, Name = "view_name_string"};
     Configuration.PTypes.Add(ptype.Name, ptype);
     var param = new Param {Help = "View name for getting scope of commands.", Name = "viewname", PType = "view_name_string"};
     Params[0] = param;
     Action = new Action {Text = "view ${viewname}"};
 }
예제 #2
0
        public ViewCommand(Session session) : base(session)
        {
            Name   = CommandName;
            Params = new Param[1];
            var ptype = new PType {
                Help = "View name type", Method = MethodType.Regexp, Name = "view_name_string"
            };

            Configuration.PTypes.Add(ptype.Name, ptype);
            var param = new Param {
                Help = "View name for getting scope of commands.", Name = "viewname", PType = "view_name_string"
            };

            Params[0] = param;
            Action    = new Action {
                Text = "view ${viewname}"
            };
        }